|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
passing an xml string to a file
I have created (with PHP), a string which is composed of xml.
E.g. $xmlstring= <?"xml version="1.0" encoding="ISO-8859-7"?> <Request> <id>name</id> <Type>00</Type> <Trans>3838384859</Trans> <Amount>5045</Amount> </Request>" ; Now, i want to pass this string to an .asp file. However, i dont want to write to the file using fwrite($fopen,$xmlstring) because that would erase the contents of the .asp file. I want to send it as a string so that the .asp file can take all the data from the string and do different things with it. Is there a function in PHP which does the same as "XMLHttp.send($xmlstring)" does in VBScript? Its the same when you send a form using POST to another page.You dont write to that page, you just pass some values to it. |
|
#2
|
|||||
|
|||||
|
RE: passing an xml string to a file
Well, the XMLHttp.send method in VBScript is going to do a POST or GET depending on what you specify in xmlhttp.Open...here is a function you can use that will do the same thing in PHP:
php Code:
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > passing an xml string to a file |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|