Silver-0-surfer
Well-Known Member
Hi
I created a script thats connecting to a server on a socket. It runs on an infinite loop.
I need to be able to initiate this script from with a php page. Normally I would run it in on linux like this:
php infinitescrip.php &
to have it running in the background, but how can I do this within php.
if I add like
echo `php infinitescrip.php &`;
the page just hangs, I'm assuming that it not sending it to a background proccess, does anyone know if this can be done?
I created a script thats connecting to a server on a socket. It runs on an infinite loop.
I need to be able to initiate this script from with a php page. Normally I would run it in on linux like this:
php infinitescrip.php &
to have it running in the background, but how can I do this within php.
if I add like
echo `php infinitescrip.php &`;
the page just hangs, I'm assuming that it not sending it to a background proccess, does anyone know if this can be done?