ページランク取得のプログラムをMODxやWordpress内で動かそうとすると以下のエラーが出る。
Error: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: Name or service not known
CMSの内部ではなく、以下のようにphpファイルを直接動かすと正常…
$string = ‘Hello World!’;
if(stristr($string, ‘earth’) === FALSE) {
echo ‘”earth” not found in string’;
}
// 出力は “earth” not found in string となります
参照元:http://www.php.net/manual/ja/function.stristr.php
この投稿へのコメント
コメントはまだありません。