Date: 04/15/05 (Web Development) Keywords: php, html, xml Calling all PHP gurus: I'm trying to use fopen() to get the XML results of a remote script, using the URL with all the script parameters instead of a file name, but all I get back is the default HTML from the script, instead of the XML results, as if I hadn't passed it any parameters at all. I'm assuming this has something to do with the HTTP headers fopen() uses to get at remote files, i.e. it bypasses script execution on the remote server and downloads the file directly. Is there any way I can get around this with fopen() or do I really have to much with HTTP headers and use fsockopen() or something? Source: http://www.livejournal.com/community/webdev/189477.html
|