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

trouble printing an array....
I'm having some trouble printing out an array forwards. I'm figuring out the high and low of an arra

BI in Upstream Production operations
Appreciate if you can assist in the following areas:
1) Examples of life before and after BI i

Displaying Column Names
I have a question regarding the ability to show the column names from my table/query.
What I'm lo

Best way to read this text file.
Hi.I am planning to make a small application in C# to convert the players from Football manager 2010

Find occurences of unicode characters in string
I need to prohibit filenames with everything but English characters and numbers but regexp and strin

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

mail() problem
Hi Guys,

I've set up a contact email form. It sends the information fine, but it sends it to

Word Trimming
Hi Guys & Gals!!

Hope you are all ok....

I need some help with the following

Calender Not Opening
The following code is not loading the javascript calender in another window. It's not doing anything

$_POST
Hi, I have 2 seperate php files, and i want my $_POSt["fname"] To go into both of them, Fo

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