note 18252 added to ref.exec
| From: | ian at virtisp dot net | Date: | Wed, 16 Jan 2002 08:55:40 +0000 |
| Subject: | note 18252 added to ref.exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-24867@lists.php.net to get a copy of this message | ||
This note is regard php scripts hanging when running system commands in the background until
background process completes. If you have redirected system command output and PHP still waits
around until background process completes...check if you are using PHP session handlers. If you
have used a start_session() before your exec() look into session_write_close() ...sessions use files
to store session data on ther server to relate to cookies...for some strange reason this open file
handler causes PHP scripts to hang until background completetions...I would think only the file
handlers for the system command output would need to be delt with but ?! FreeBSD, Apache mod, PHP
4.1.1
Cheers,
Ian Carlson
ian@virtisp.net
--
http://www.php.net/manual/en/ref.exec.php
http://master.php.net/manage/user-notes.php?action=edit+18252
http://master.php.net/manage/user-notes.php?action=delete+18252
http://master.php.net/manage/user-notes.php?action=reject+18252