On Tue, Dec 29, 2009 at 10:52 AM, John Campbell wrote:
> It doesn't work on some installs, may break with ssl, doesn't support
> cookies reliably, can't handle http errors, may or may not follow
> redirects, etc. simple_xml_load_file() on a
> remote resource is great for article writers because th
David,
I use curl every time I am accessing a remote resource. I'd fetch the
content with curl, and process it as a string. Using php's remote
resource is always flaky. It doesn't work on some installs, may break
with ssl, doesn't support cookies reliably, can't handle http errors,
may or may n
I've been following the example for PHP error handling using
simplexml_load_file as show in this example:
http://www.ibm.com/developerworks/library/x-simplexml.html
To test my PHP code, I put in a bogus URL, which failed and the PHP
script caught it allowing me to control it in the program.