|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2003-04-07 17:56 UTC] sniper@php.net
  [2003-04-08 02:46 UTC] jlg at huelladigital dot net
  [2003-04-23 04:07 UTC] sniper@php.net
  [2003-04-23 04:36 UTC] edink@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Wed Oct 22 14:00:01 2025 UTC | 
I have php compiled as cgi in /usr/local/bin/php: ./configure --with-mysql --enable-ftp --enable-sockets --with-ncurses --enable-cgi I have 2 scripts, named foo1 and foo2: foo1: #!/usr/local/bin/php <?php exec("./foo2"); ?> foo2: #!/usr/local/bin/php <?php print "foo"; ?> When I call foo1 from shell the result is OK (it echoes "foo"). But when I call it as a cgi (http://myserver/cgi-bin/foo1) it calls recursively the script "foo2" and hangs. I must restart apache. It is Apache/1.3.27. The script directory cgi-bin has "Options ExecCGI" directive.