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

Lining up columns nicely.
Hello everyone, I'm having problems with making columns line up properly. Here is my code:

PHP FTP connect doesn't work with correct login
Hi!

i am working on this test code:
Quote<?php

$ftp_ser

DELETE FROM not working deletes wrong row
Hello

I have the following code which i found but it doesnt work properly.. it comes up with

New Search Engine problem
Hey everyone,

I have a ZIP Code Radius search engine already functional. it displays all of t

pagination - need help on passing of search query.
Hi, i have been trying for days but couldn't get this sorted out. Would like some professional help

Hom to make one url to open together with another url
I have a chat, which i want to be opened, as soon as the users login to the site. As it is now, when

list files from folder, only one for each date
I have many files in a folder and wish to only list one of each date

these are the file names

calculator
I can't figure out why this code doesn't work. No error messages. Page loads.

Code: <

cURL proxy
Okay here is the thing... i know how to add proxys

Code: curl_setopt($ch, CURLOPT_PROXYTYPE,

Object Interfaces
EDIT: Never mind, I just updated to php 5.

Hey all,

I'm currently experimenting with p

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