Page 1 of 1

Need to pass data to and back between a PHP page an .ASPX

Posted: Sat Jan 07, 2006 7:29 am
by Corobori
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 ?

Posted: Sat Jan 07, 2006 12:46 pm
by Chris Corbyn
You could actually run the file on the other server and catch the output by doing:

Code: Select all

$data = file_get_contents('http://www.yourserver.com/remote_file.aspx');
echo $data;
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.

Posted: Sat Jan 07, 2006 12:55 pm
by Corobori
The ASPX part is not a problem, I am handling this part.

Posted: Sat Jan 07, 2006 1:18 pm
by Jenk
GET variables.

Posted: Sat Jan 07, 2006 2:42 pm
by John Cartwright
I believe the use of cURL would be the best approach to this. Simply cURL your data to the website and capture any content that is generated.