Calling PHP script with Exec

From: Date: Sat, 07 Sep 2002 09:28:59 +0000
Subject: Calling PHP script with Exec
Groups: php.windows 
Request: Send a blank email to php-windows+get-15695@lists.php.net to get a copy of this message
Hello PHPWinGroup! I am writing a php script that will need to call via exec() a 2nd php script to run in the background. (OS: linux) I am thinking it would look something like this: exec("php script2.php $param > /dev/null &"); I haven't actually attempted this yet. Was just hoping for a confirmation that I am on the right track. And what is the payload of doing something like this, if say, oh, 500+ people are doing this at the same time? No access to crons, so can't do that. This is my hack or workaround for not having scheduling ability. So I just call a 2nd script to run in background to handle the script that will take longer. Don't want people waiting for a script to finish. Some server specs: OS: linux (on a hosted server i have no access to at all) Crontab: nope Thanks!! -- Nicole www.aeontrek.com - - - -

« previous php.windows (#15695) next »