moleproductions
Programmer
I have a situation in PHP where I need to post certain variables (username and password) to an authorisation script on a 3rd party server. On receipt of those two variables the script authenticates the data and sends an XML stream back which looks like:
Does anyone know how in PHP to send the two variables to the 3rd party script, how to read the XML stream back, and how to determine what the "accessname" is set to?
Something like (but in PHP):
Any help, gratefully received!
Thanks.
Code:
- <xml xmlns:s="xxx" xmlns:dt="xxx" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema">
- <s:Schema id="RowsetSchema">
... etc ...
<z:row accessname="Joe Bloggs" />
</rs:data>
</xml>
Does anyone know how in PHP to send the two variables to the 3rd party script, how to read the XML stream back, and how to determine what the "accessname" is set to?
Something like (but in PHP):
Code:
<XML stream>=post('fldUsername=$username,fldPassword=$password','[URL unfurl="true"]http://www.domain.com/authenticate.asp');[/URL]
$login_name=<XML stream>[accessname];
Any help, gratefully received!
Thanks.