Re: file upload
| From: | Kris | Date: | Tue, 26 Oct 2004 12:54:58 +0000 |
| Subject: | Re: file upload | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-200341@lists.php.net to get a copy of this message | ||
Victor
Yes, Chris is correct. Maybe you can POST your file via cURL to the remote script expecting to receive your file from the authentication site. Definitely check PEAR. There is also some info at php.net about new SOAP capabilites built-in to PHP 5. Unfortunately I have only used cURL to do similar to what I think you are trying to do, so I can only suggest at this time to review what is new in PHP (which is where I saw mention of this "built-in SOAP" of PHP5.)
Feel free to write back and we will continue in attempts to assist.
Chris wrote:
Ahh, if you *have* to push the data (which you obviously do) and the authentication site has no other authentication methods then you have to POST the file with PHP. It can be done, there are many classes for it, I can't recommend any specific class, but I'm sure someone else here could. I would surprise me if something in PEAR ( http://pear.php.net/ ) couldn't do it. Just look for an HTTP class that can POST files. Chris Victor C. wrote:See... basically, I have two sites. One site provides user authentication and another one requests the authentication. The requesting site need to send to the authentication site its request in an XML. The authentication site is suppose to get the XML file using $HTTP_POST_FILES. I'm using PHP to dynamically generate the request XML file and I need to submit it to the authenticating site; but I don't want to use file upload and browse functionality, because the authentication process is suppose to be transparent to the end users. Again, thanx for the help and any insights would be greatly appreciated. :)