PHP hangs on multiple requests

rqpaa

New Member
Hi everyone I have a problem.I have made a script where user submits a details. Details are saved to databaseand a exec is called after they are saved. The background scipt that is called is a phpscript that I call it via exec with wget:\[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() . ' > /dev/null 2>&1 &');\[/code\]the script queries database and posts some parameters to external url with curl and waits for response.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.Apache/2.2.9 (Debian) mod_fastcgi/2.4.6 PHP/5.2.6-1+lenny9 with Suhosin-Patch Server at 127.0.0.1Debian Linux distro.Server API CGI/FastCGI
 
Back
Top