PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Is there a way to send XML data to a PHP script to be parsed, somewhat like using it as an argument. I'm assuming I can't use GET, since the maximum length would most likely be reached, so would posting it via a form work? Anyone have any ideas?
I have a PHP script that will return information, like database entries, in the form of XML. What I would also like to do is be able to supply the script input in the form of XML from some other source, like ASP or Flash.
If you use POST instead of GET, then the size limitation is less of an issue. Alternatively, you could get the source program to write to a file that is accessible to your PHP code and which could then be opened and used as the xml source.
As far as I know, the xml parser will scan over a character stream, so opening the file or parsing over the xml string sent via POST should work.