What is the option for what I need to do ?
From a PHP page I need to pass some information and execute an .ASPX located on another website which will return to me a string of caracter saying or "SUCCESSFULL" or "UNSUCCESSFULL".
How should I do this ?
Need to pass data to and back between a PHP page an .ASPX
Moderator: General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
You could actually run the file on the other server and catch the output by doing:
There's also fsockopen() but that's a bit of an overkill I think... as for the aspx side of things I'm not familiar with it so I wouldn't know.
Code: Select all
$data = file_get_contents('http://www.yourserver.com/remote_file.aspx');
echo $data;- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact: