Re: simpleXML - simplexml_load_file() timeout?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



quoth the Martin Alterisio:
> Maybe you can read the contents of the feeds using fsockopen() and
> stream_set_timeout() to adjust the timeout, or stream_set_blocking()
> to read it asynchronously, and then load the xml with
> simplexml_load_string().

Hello, and thanks for the response,

As Robert Cummings suggested above, the easy solution is to use curl, which 
does offer a timeout option, and then feed it to simplexml_load_string().

I am writing some code now...

Thanks, and have a good one,
-d

-- 
darren kirby :: Part of the problem since 1976 :: http://badcomputer.org
"...the number of UNIX installations has grown to 10, with more expected..."
- Dennis Ritchie and Ken Thompson, June 1972

Attachment: pgpV1JxLFbIEb.pgp
Description: PGP signature


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux