[EMAIL PROTECTED] (Martin Helie) writes: > Hello, > > I need to start a php-based socket server that doesn't die if the client > closes their browser window. > > Is there another (maybe cleaner) method to accomplish this, other than > > exec('bash -c "exec nohup setsid php server.php > /dev/null 2>&1 &"');
I haven't had a need for something like this myself, but I think the ignore_user_abourt() function is what you need: http://php.net/manual/en/function.ignore-user-abort.php -- Martin Geisler My GnuPG Key: 0xF7F6B57B PHP EXIF Library | PhpWeather | PhpShell http://pel.sf.net/ | http://phpweather.net/ | http://gimpster.com/ Read/write EXIF data | Show current weather | A shell in a browser -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php