Re: multithreading

From: Date: Wed, 15 May 2002 19:59:45 +0000
Subject: Re: multithreading
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-84091@lists.php.net to get a copy of this message
PHP isn't threadable... PHP is Thread Safe meaning you can run multiple php scripts on multiple threads for the samp process but you can't create threads inside php code. What i don't see is why you want to go from cron .. using ither php-cli or cgi.. to using threads. It seems you are just trying to run a script that you have multiple times? You can do system calls inside php shell_exec("php some_script > /dev/null 2>&1"); which will allow you to call a script from a script. or you can get into unix forking.. http://www.php.net/manual/en/ref.pcntl.php - Brad --- Andrew Milne <andrew@stratus.net> wrote: > I have a PHP script that is run hourly by cron; I would like to make this > multithreading rather than configure cron to run the script more than once > per hour. Is this possible using PHP? I've tried using ticks, but it > doesn't appear to work - the tick function doesn't execute more than once at > the same time... I'm using 4.1.2. > > Any help greatly appreciated! > > Andrew > > > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, visit: http://www.php.net/unsub.php > __________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com

« previous php.dev (#84091) next »