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
Did you know?Explore Trending and Topic pages for more stories like this.
$doc = new DOMDocument();
No comments posted yet

Your Answer:

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

TemplatePower & AJAX
Hi all,



I'm currently implementing some AJAX features in my PHP-framework (which is b

Most basic form question ever?
Hello,

I want to use this snippet to make sure the fields in a form are ok before processing

SQL Injection
In my attempts to protect my database from mySQL injection I have created another problem for myself

Javascript form submit and radio buttons?
When this form is submitted, it is automatically resubmitted using JS.

All my fields are carr

Track downloads' status
Hello,

I need to make somehow, some system, to track whether downloads are completed or faile

Cursor statement failed with errors
Following statement failed with the errors.

cursor proj_cursor1 is (select projectID from

Getting a variable to work in function params
I have this fuction which is inside a class:

Code: public static function generateEmbedCode($

Just a white page
Okay so, my website, when I click SignUp on it it takes me to /join.php but its a complete white pag

Database/Table Collation
What is the Database, and table collations used for? i don't understand what there used for since co

count only commas outside parenteses
I have a sql table containing
id - query - query name
the first page contains a drop down men

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