how to timeout $doc = new DOMDocument()->load($url)


Posted on 16th Feb 2014 07:03 pm by admin

I am currently using this $doc->load($url) to fetch an rss feed.
If a feed takes long than 20 seconds to download, I wish to terminate it and proceed to the next, is there any way of terminating this??

Code: Reference
$doc = new DOMDocument();

No comments posted yet

Your Answer:

Login to answer
192 Like 13 Dislike
Previous forums Next forums
Other forums

Disable Scrollbar in TableControl
Hello everbody,

please can anybody help me - outherwise i'm going to become desperate :P<

On page view, minus credit
Hello all, please, I need a little help with this script. I am charging one credit (credits can be p

login and redirect
hello! can someone help me.. can you give me an idea.. I want to make a login page and redirects it

Require select-option functionality in Module Pool Programming
Hi Gurus,

I am doing a development by Module Pool on Warehouse Management. For that devel

MS are the best!!!
Visit http://www.microsoft.com/australia/windows/default.aspx?h=watch-a-demo and click the massive '

Check premium expire
Hi,

I am making a simple file hosting site and want to check if users premium subscriptions h

Frustrated php Newbie
First off, I am pretty much a PHP nub. I can read and understand the language (most of the time) so

blank page.... nothing is happening.
I'm new to a lot of this but in the last 24hrs have learned a lot.
Installed latest version of my

A WBS element with the name XXX already exists in version FREI_VERSION
Hi.
When I am trying to insert WBS element in a project, error occurs:

"A WBS eleme

PEAR Email Attachment w/ $gpg
I have no issues with this code if I take out the attachement section and include the info in the em

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash