On Fri, Nov 21, 2003 at 03:40:05AM -0700, Gary C. New wrote:
:
: What is the best way to detach and run a command line based php script
: in the background from a web-based php script, without the need for
: reporting?
How about exec('command &') ?
--
PHP General Mailing List (http://www.php
Gary C. New wrote:
What is the best way to detach and run a command line based php script
in the background from a web-based php script, without the need for
reporting?
Try something like :
if (!($handle = popen("script.sh 2>&1 > /dev/null &", "r")))
{
echo "Couldn't run process";
}
http://w
What is the best way to detach and run a command line based php script
in the background from a web-based php script, without the need for
reporting?
I have a web-based php script that gathers information and then passes
it off to several functions, which execute several other php scripts.
The
Hello!
first my code
#!/usr/local/bin/php -q
I read that posix_setsid return pid on succesfull detaching. But i get
-1. I read man for setsid and this -1 mean error.
What i want is that if i run this script with automatic detaching.
But it does nothing than waiting this for to finish.
What
4 matches
Mail list logo