PHP hangs on multiple requests
<p>Hi everyone I have a problem.</p>

<p>I have made a script where user submits a details. Details are saved to database
and a exec is called after they are saved. The background scipt that is called is a php
script that I call it via exec with wget:</p>

<pre><code>session_write_close();
@exec('wget -q  -o /dev/null -a /dev/null -O /home/linux/test.txt http://127.0.0.1/admin/install.php?s=' . session_id() . '  &gt; /dev/null 2&gt;&amp;1 &amp;');
</code></pre>

<p>the script queries database and posts some parameters to external url with curl and waits for response.</p>

<p>I am unable to open any other php page (status bar shows: waiting for 127.0.0.1) on the webserver until the script execution of the script above ends. What I want is to run in background while I do other things on my website.</p>

<p>Apache/2.2.9 (Debian) mod_fastcgi/2.4.6 PHP/5.2.6-1+lenny9 with Suhosin-Patch Server at 127.0.0.1
Debian Linux distro.
Server API  CGI/FastCGI </p>
