Re: [PHP] fopen with external file

2002-07-03 Thread Analysis & Solutions
On Thu, Jul 04, 2002 at 08:04:59AM +0100, morka ++ wrote: > 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)); "This function will n

[PHP] fopen with external file

2002-07-03 Thread morka ++
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.ht