pulling the results of a dynamic XML feed into PHP
- From: "adam" <adam@xxxxxxxxxxxxxxxxxx>
- Date: 23 May 2005 06:51:59 -0700
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.
.
- Follow-Ups:
- Re: pulling the results of a dynamic XML feed into PHP
- From: ZeldorBlat
- Re: pulling the results of a dynamic XML feed into PHP
- Prev by Date: Re: decode
- Next by Date: Re: checking if a cell is empty
- Previous by thread: decode
- Next by thread: Re: pulling the results of a dynamic XML feed into PHP
- Index(es):
Relevant Pages
|