Re: CURL and process not finishing

From: Date: Fri, 05 Jan 2007 12:08:44 +0000
Subject: Re: CURL and process not finishing
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-42887@lists.php.net to get a copy of this message
On 1/5/07, john@shortstay-london.com <john@shortstay-london.com> wrote:
I am using CURL to check pages outside my site on the internet for some text, then I email someone on my database who supposedly looks after the site. The script creates a process that does not terminate. It is running on a scheduled cronjob so eventually my site has over the maximum of 20 processes running and it goes offline. It may be that some of the pages I check are hard to get a response from, as CURL tries to return the target URL. I have removed any emailing that it does and still get the problem. Is there any way to check that a process is not terminating after a reasonable time?
http://www.php.net/manual/en/function.set-time-limit.php Get the php script to terminate after a certain amount of time. You could also use this curl variable: CURLOPT_CONNECTTIMEOUT in case it's a connection issue... see http://www.php.net/curl I'd probably also try setting CURLOPT_VERBOSE to see if that reveals the actual problem rather than guessing. -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.db (#42887) next »