fopen with external file
| From: | morka ++ | Date: | Thu, 04 Jul 2002 07:04:59 +0000 |
| Subject: | fopen with external file | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-105368@lists.php.net to get a copy of this message | ||
i try to open the external file using fopen() function.
I use the example from php.net:
$filename = http://www.aaa.com/index.html;
$fd = fopen ($filename, "r");
$contents = fread ($fd, filesize ($filename));
fclose ($fd);
however I always get the error "stat failed for
http://www.aaa.com/index.html (errno=2 - No such file or
directory) "
but this file really exists.
what is the problem?