//mailto:が使用されているメールアドレス
preg_match_all("/mailto:(.+?)"/s", $html2, $matches);
//mailto:は使用されておらず、@を基準に判別
preg_match_all('/[-.w/]+@[-._[:lower:]d]+.[[:lower:]]{2,4}/s', $html2, $matches);
…
今回RSSを取り出すのに使っていた「MagpieRSS」を以下のように使っていたのですが、
include (‘rss_fetch.inc’);
require_once ‘code_table.ucs2jis’;
require_once ‘jcode.php’;
繰り返し処理を行おうとしたところ、Fatal error: Cannot redeclare phpでのエラーとういうエラーが出現するので、以下のように修正したら、とりあえず動くようになりました。
ちゃんとした解決策なのかどうかは不明ですが・・・( ; ゚Д゚)
require_once (‘rss_fetch.inc’);
require_once ‘code_table.ucs2jis’;
require_once ‘jcode.php’;
この投稿へのコメント
コメントはまだありません。