When I use a GET request from a browser address bar…
…it loads and displays an XML output. If you then refresh the page a new file loads. Actually, there are something like 5 different titles with load in rotation as you re-call/re-fresh the page. That’s all well and good and as it should be. However, if I try and call and load that page from a PHP script -- simplexml_load_file() – while it will load the first title, when refreshed and called the second time, it only ever displays the first title.

I was told this is probably a User Agent issue. What I need is for a PHP script to be able to get all the XML versions, just as you can through the browser.

Any thoughts?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.