[PHP] Reading an XML outputting PHP file as XML

2006-06-02 Thread IG
Hi. I have a PHP file that outputs as XML from a database. i have used the header() function to output the correct header but when I use the simplexml function it is trying to parse the php file itself and not the output of the php file. I can't get my head round this. Can anyone help me? --

Re: [PHP] Reading an XML outputting PHP file as XML

2006-06-02 Thread Jochem Maas
IG wrote: Hi. I have a PHP file that outputs as XML from a database. i have used the header() function to output the correct header but when I use the simplexml function it is trying to parse the php file itself and not the output of the php file. I can't get my head round this. Can anyone

Re: [PHP] Reading an XML outputting PHP file as XML

2006-06-02 Thread Adam Zey
Jochem Maas wrote: IG wrote: Hi. I have a PHP file that outputs as XML from a database. i have used the header() function to output the correct header but when I use the simplexml function it is trying to parse the php file itself and not the output of the php file. I can't get my head round