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

having probem inserting data into db table
hi

i have a table with following columns in it
Code: candidate_id, degree, cgpa, institute

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

mr8m - reverse document
Friends,

I'm trying to reverse a document held by MIRO, but it reports the message balan

Multi-user card game
I'm writing a batch of games and such. Lottery is finished, Poker,blackjack,etc are next. They will

apart from cron
I need to run a php file every one hour. Is there any other solution apart from cron job?

listcube issue
Hi
I have a virtual cube ZREMOTE. I use Tcode "listcube" to retrieve contents. I use of the

start new row of pictures
on my site www.budstreasureauctions.com there is a featured auctions box that users will pay to get

php global variable
how can we create global variable so we can use its value in any form.. Please give example to

session_destroy();
new to php
I have a simple login and am trying to write a logout.
I set a $_SESSION var to 1 i

output_buffering so rewrite
I'm planning to rewrite some of my scripts so they don't have to use output buffering to accomplish

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