Hi,
I tried to start a background process with php, for that, I added a & at bottom on exec function but after a few days it stop working.
Basically
If i have file 1.php with:
<?php var_dump(exec('/home/2.php > /home/2.output 2>&1 &'));
And file 2.php with:
<?php sleep(5); echo "Fill\n";
Running file 1.php, it return an empty string not -1 or something else, but using console and calling 1.php it work ok:
php-cgi -eq -f /home/1.php
I'm using ubuntu 9.04 with 2.6.18-164.10.1.el5.028stab067.4
I'm a bit lost, What could i do?