'copy' failure on Win2000
| From: | overlord at daoist-tiger dot com | Date: | Wed, 17 Oct 2001 14:51:07 +0000 |
| Subject: | 'copy' failure on Win2000 | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-9890@lists.php.net to get a copy of this message | ||
Hi there,
I'm trying to use 'copy' to copy from a url. The line I'm using is:
copy( "http://www.lotus.com",
"c:\\temp\\lotus.html");
I am getting the error:
"Warning: Unable to open 'http://www.lotus.com' for reading: Invalid argument in
D:/webserver/Xitami/webpages/zed/php/Downloader.php on line 6
"
BTW it is not a problem accessing the site. I get the same problem running PHP standalone, and I
can access the site from a standalone C++ app with no problem.
I'd appreciate any suggestions anyone has as to why this doesn't work.
Cheers - Steve