downloading using php via commandline
| From: | John Yu | Date: | Thu, 31 Jul 2003 20:35:10 +0000 |
| Subject: | downloading using php via commandline | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-20954@lists.php.net to get a copy of this message | ||
Hi
I'm using php on winxp through commandline. Now, Amazon has this feature
where the sellers could download reports from it's Automated Inventory
Management system...
To get into this system, they require you to send a POST request... now,
I've sent the request, supposely, the reply is the file, how do I make php
take this file?
Can I just do this:
$reply="";
while (!feof($conn))
$reply .= fread($conn, 1024);
echo $reply;
or I need something else.
thanks
John