RE: [PHP] getting a string from an external asp file
| From: | Maxim Maletsky \(PHPBeginner.com\) | Date: | Thu, 25 Apr 2002 19:55:25 +0000 |
| Subject: | RE: [PHP] getting a string from an external asp file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-94644@lists.php.net to get a copy of this message | ||
You can POST forms transparently between servers by using sockets.
Basically, your PHP file will simply send the POSTed data to a page and
will read it after that. Then you parse the ASP output and vuala!
Start here:
www.php.net/fsockopen
Good Luck!
Maxim Maletsky
Founder, Chief Developer
www.PHPBeginner.com // where PHP Begins
> -----Original Message-----
> From: Purple Tiger [mailto:zingo@purpletiger.com]
> Sent: Thursday, April 25, 2002 9:37 PM
> To: php-general@lists.php.net
> Subject: [PHP] getting a string from an external asp file
>
> This has probably been answered somewhere else, but I'm bashing my
head
> against a wall trying to find the answer.
>
> I'm trying to call an external ASP file from a different server (for
> e-commerce authorisation) and send POST data to it. The ASP will
return
> only a string (ie prints it!!) and I need to get this into a variable
so I
> can process it.
>
> I assume I can't use a FORM for this as the ASP doesn't return HTML
data.
>
> I've tried EXEC, but to no avail and need some help here.
> Thanks in advance.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php