- - PR -
phpのcurlモジュールについて
1
投稿者 | 投稿内容 |
---|---|
|
投稿日時: 2004-09-29 11:09
Apache+phpでcurlモジュールを利用して
Webページの情報を取得しているのですが なぜか、23:00〜9:00(前後)に実行すると正常に取得できないのです。 上記以外の時間帯(9:00〜23:00)では正常に取得できています。 このような現象に心当たりありましたら ご助力御願いします。 「環境」 PHP 4.1.2 Apache 1.3.27 「ソースコード」 // HTMLの取得 $user_agent = "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)"; $ch = curl_init($url); curl_setopt($ch, CURLOPT_USERAGENT, $user_agent); curl_setopt($ch, CURLOPT_PROXY, $proxy); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 10); $html = curl_exec($ch); |
1