Getting remote script results in PHP

    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?

    Any help will be greatly appreciated.

    Source: http://www.livejournal.com/community/webdev/189477.html

« hey guys || CMS »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home