pulling the results of a dynamic XML feed into PHP



I'm working on linking php up with a rather awkward ecommerce solution.

in order to retrieve product info and make transactions happen, XML
info is submitted as a reqiest to an apache module, which returns its
own XML document in response.

i've built a page that takes GET variables and submits them as POST
data. I've also built an instance of php's parser object to read the
resulting XML.

the problem is i can't get these two pages to talk to one another. the
module changes the URL of the page when it responds, so fopen() returns
an error, because the page it requested (which submits and retrieves
the data), results in a different URL than what it first tried to open.

i then tried posting the data with javascript's XMLHttpRequest, but
fopen() of course won't process that. making it an include() first of
course doesn't help, since i can't assign the contents of include() to
a variable.

i've no control over the module or its XML output, so i can't make it
spit the whole thing out as a php variable, which would be ideal.

ultimately i'd like to get the response XML into a PHP string.

we're using PHP 4.3.

.



Relevant Pages

  • Re: Ruby performance woes
    ... Now here's my take on all this: PHP and JSP and what I inquired ... S-expressions used as a directly alternate expression of SGML or XML. ... By the way, I've never had access to a Web server that can run ASP, ...
    (comp.lang.lisp)
  • Re: Object Oriented Content System - the idea
    ... >I expected php to be smarter then that. ... >form like bytecode in memory for the next request. ... each action added some stuff to a "response" XML document. ... that map/object/data and formats it for HTML display using an includeed PHP ...
    (comp.lang.php)
  • Re: Need help with PHP DOMXML - get_elements_by_tagname
    ... PHP as a supported platform. ... uses the built in XML handler CF MX provides. ... in newer versions of PHP and the method will *not* support xpath. ...
    (comp.lang.php)
  • Re: AJAX Help - responseXML always NULL
    ... to the PHP script I am calling, the XML file shows up just fine. ... the Content-Type header of the response does not fit. ... PHP Script on Server Side ...
    (comp.lang.javascript)
  • Re: Windows Anwendungmit einer Web mySQL als Backend?
    ... und das sind dann eben PHP und mySQL. ... Wenn ich also auf der Serverseite PHP verwende, ... dass sie Parameter entwender über URL oder POST erhält. ... Bei der Antwort der PHP Seite kann ich dann so eine Art XML Datei mit Daten ...
    (microsoft.public.de.german.entwickler.dotnet.vb)