Hello all,
Up until recently, I have been using the file('http://some.xml.url') function to read some XML output from a particular website before parsing it later in the code. This worked great for the past 12 months, until last week when I started getting the following error message:-
Warning: File("http://some.url") - Success in /home/sites/scriptname.php3 on line nn
I cannot find any reference to this warning - it seems to say 'success', yet the array that is supposed to be filled by this file() is empty.
Can anybody suggest what is happening, and why this script which worked perfectly for 12 months has suddenly stopped. I am assuming that the originating web server has been changed somewhat. Interestingly, if I type in the URL into a normal browser to check, the output comes up exactly the same as it did before.
Perhaps there are some added control characters which is confusing PHP?
Thanks in advance,
Devan Sabaratnam
devan@blaze.com.au