Posted 07 April 2006 - 06:30 PM
I need to send a post of variables to an ASP script on another server. The ASP script doesn't use a $_GET like function so I can't send the variables in the URL.
I tried setting up a fsockopen(), but I get this error:
Warning: fsockopen() [function.fsockopen]: unable to connect to [a href=\"http://media.school.com:80\" target=\"_blank\"]http://media.school.com:80[/a] (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?)
The obvious answer is to have the payment gateway post directly to this page, but I need it to stay where it is because it runs the rest of this clients e-commerce system.
I have limited access to the server and I believe it's running on Windows Server 2000 (not my choice).
Posted 07 April 2006 - 07:48 PM
Hopefully your ISP compiled PHP --with-curl; see the section in the online PHP manual for the curl functions.
If your ISP didn't, and you're running on Linux, you might be able to call the command-line curl executable via fopen()...
Posted 07 April 2006 - 08:06 PM
I'm still hoping there is a code solution to my troubles, but I'll definatly keep this as a plan B. Thanks.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users