Net_Whois::query() – whois 問い合わせを実行する
pear install Net_Socket
pear install Net_Whois
もし、「WARNING: channel "pear.php.net" has updated its protocols, use "channel-update pear.php.net" to update」
という警告が出る場合は、以下を実行して、pear.php.netをアップデートします。
# pear channel-update pear.php.net
私の場合は、警告は出ましたが、アップグレードしなくても
pear install Net_Socket
pear install Net_Whois
のインストールは完了しました。
…
今回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’;
この投稿へのコメント
コメントはまだありません。