Re: post thru fsockopen
| From: | Manuel Lemos | Date: | Wed, 18 Apr 2007 03:58:46 +0000 |
| Subject: | Re: post thru fsockopen | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-27715@lists.php.net to get a copy of this message | ||
Hello,
on 04/17/2007 11:46 AM Joakim Ling said the following:
> Hi there
>
> Im tring to send a file with a php script, Im using php 5.2 on a Win
> 2003 server. At the other end I just save the file and process the data
> and print the result, then fetch the output and write a report. But this
> doesn't work, any one got an idea? The file never get to the other end?
> When I do a var_export($_POST) is empty.
Couldn't that be because you should be checking $_FILES instead of $_POST?
Anyway, I use this HTTP client class and it supports file uploading easily.
http://www.phpclasses.org/httpclient
--
Regards,
Manuel Lemos
Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/