CGI Recursion problem

From: Date: Tue, 08 Oct 2002 11:16:27 +0000
Subject: CGI Recursion problem
Groups: php.general 
Request: Send a blank email to php-general+get-119273@lists.php.net to get a copy of this message
Hello people! I've got the two simple php scripts: micgi.cgi and test.cgi. The script micgi.cgi is a php scrit that only executes the php script test.cgi. When i execute micgi.cgi from the command line, all is ok. The problem comes when i execute it from the web. When micgi.cgi execute test.cgi this script never end and it's execute recursivy. it seems like it's was usign micgi.cgi as the php interpreter. #'pstree init-+-apmd |-atd |-bdflush |-crond |-httpd---8*[httpd] |-httpd-+-httpd---micgi.cgi---test.cgi---test.cgi---test.cgi---test.cgi---+ | `-httpd |-kapmd anyone know what to do? the scripts are the following: micgi.cgi ------------- #!/usr/bin/php <? echo ("HI PHP CGI1"); system("/home/useradmin/cgi-bin/test.cgi",$res); return 1; ?> test.cgi ------- #!/usr/bin/php <? echo "hi TEST.CGI <br>"; ?>

« previous php.general (#119273) next »