Voting

: zero minus zero?
(Example: nine)

The Note You're Voting On

elwiz at 3e dot pl
14 years ago
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();

?>

<< Back to user notes page

To Top