note 17690 added to function.exec

From: Date: Wed, 19 Dec 2001 18:12:01 +0000
Subject: note 17690 added to function.exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-23341@lists.php.net to get a copy of this message
To get around the problem arising from sessions and background program execution (with system, exec or passthru) you can do this: ..... session_write_close(); $dummy = system("./run &", $code); ..... NOTE: remember to set all your session registered variables before you call session_write_close()! see session_write_close() manual page for details. -- http://www.php.net/manual/en/function.exec.php http://master.php.net/manage/user-notes.php?action=edit+17690 http://master.php.net/manage/user-notes.php?action=delete+17690 http://master.php.net/manage/user-notes.php?action=reject+17690

« previous php.notes (#23341) next »