//mailto:が使用されているメールアドレス
preg_match_all("/mailto:(.+?)"/s", $html2, $matches);
//mailto:は使用されておらず、@を基準に判別
preg_match_all('/[-.w/]+@[-._[:lower:]d]+.[[:lower:]]{2,4}/s', $html2, $matches);
…
htmlファイルでphpを動かすための.htaccessファイルの設定
.htaccessファイル内に以下の行を記述します。
AddType application/x-httpd-php .htm .html
当然の前提条件として、htaccessの動作が許可されているサーバに限ります。
graffiti on the web
この投稿へのコメント
コメントはまだありません。