a strange problem of fopen!
| From: | Ns_Andy | Date: | Wed, 23 Oct 2002 12:37:18 +0000 |
| Subject: | a strange problem of fopen! | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-121073@lists.php.net to get a copy of this message | ||
$day = array();
$day[] = date("Ymd");
$fp = fopen("http://taiwan.cnet.com/news/archives/index.htm?date=$day[$i]","r");
...(to display its content)
I run it properly,but my friend doesn't,
The following message was encountered.
Warning: php_hostconnect: connect failed in n:\php\taiwan_cnet\news_reader_1.0.php on line 18
Warning: fopen("http://taiwan.cnet.com/news/archives/?date=20021023",
"r") - Bad file descriptor in
n:\php\taiwan_cnet\news_reader_1.0.php on line 18
same as me,he is using the latest version of php.
(testing the script in command prompt (php.exe a.php) returns the above strange message,but mine is
proper)
--
Regards,