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

need help modifying script
Hi guys,

I'm fairly new to php and am having a bit of trouble modifying a script.

This

Mail sending is slow on server
Why mail is taking time to be send on apache-linux server

Got A Free Server :(
So I was given a free server

http://shopping.yahoo.com/p:Compaq%20ProLiant%201500%20Server:1

Just wondering what you think about my site
I am new to phpfreaks i just seen this form and thought it would be cool to see what other thought a

problem with refreshing
in my site, i have an index page, it has a main div. this main div's content is changing according t

Count number of records in all the tables with a querry URGENT PLEASE...
I downloaded ORACLE 9I DATA DUMP into my comp. There are number of tables. I need to find out the

Calander layout
Hi i know this sounds like a simple question but i cant find the answer to it anywhere i have added

Required to login help
I'm trying to set up my site so users have to be logged into the forum to access the site.I've been

MySQL-PHP Query Results Help
Hello all. I'm hoping to be able to get some help in solving a problem with query/rowcount output. I

Website Direction...
I recently used this code to try and make it so the page loads as http://www.domain.com/ when you ty

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