note 31126 added to function.exec

From: Date: Thu, 10 Apr 2003 14:49:44 +0000
Subject: note 31126 added to function.exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-46452@lists.php.net to get a copy of this message
SESSIONS + EXEC >From: karl at cactuslab dot com >22-Oct-2002 02:27 >Regarding the question from mightye at mightye dot org about exec leaving >programs running >in the background causing PHP to lock up - at least for >your current session. > >I think this is due to the locking of session data? Try adding a >session_write_close() >before your exec and see if that fixes it. Fixed it for me. It seems that this is the right solution. ;] I tried everything including registering new session(NEW SESSID) and destroyng the old one but this includes much more code and does not seem clean to me ... doing session_write_close(); before exec solves the problem nice end easy :) -- NOP -- http://www.php.net/manual/en/function.exec.php http://master.php.net/manage/user-notes.php?action=edit+31126 http://master.php.net/manage/user-notes.php?action=delete+31126 http://master.php.net/manage/user-notes.php?action=reject+31126

« previous php.notes (#46452) next »