note 99781 added to function.exec
| From: | elwiz at 3e dot pl | Date: | Mon, 06 Sep 2010 13:10:11 +0000 |
| Subject: | note 99781 added to function.exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-172334@lists.php.net to get a copy of this message | ||
On Windows-Apache-PHP servers there is a problem with using the exec command more than once at the
same time. If a script (with the exec command) is loaded more than once by the same user at the same
time the server will freeze.
In my case the PHP script using the exec command was used as the source of an image tag. More than
one image in one HTML made the server stop.
The problem is described here (http://bugs.php.net/bug.php?id=44942) toghether with a solution -
stop the session before the exec command and start it again after it.
<?php
session_write_close();
exec($cmd);
session_start();
?>
----
Server IP: 195.114.0.19
Probable Submitter: 193.16.255.50
----
Manual Page -- http://www.php.net/manual/en/function.exec.php
Edit -- https://master.php.net/note/edit/99781
Del: integrated -- https://master.php.net/note/delete/99781/integrated
Del: useless -- https://master.php.net/note/delete/99781/useless
Del: bad code -- https://master.php.net/note/delete/99781/bad+code
Del: spam -- https://master.php.net/note/delete/99781/spam
Del: non-english -- https://master.php.net/note/delete/99781/non-english
Del: in docs -- https://master.php.net/note/delete/99781/in+docs
Del: other reasons-- https://master.php.net/note/delete/99781
Reject -- https://master.php.net/note/reject/99781
Search -- https://master.php.net/manage/user-notes.php