Re: simpleXML - simplexml_load_file() timeout?

From: Date: Mon, 10 Apr 2006 22:32:40 +0000
Subject: Re: simpleXML - simplexml_load_file() timeout?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-233703@lists.php.net to get a copy of this message
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: [application/pgp-signature]
« previous php.general (#233703) next »