[PHP] CGI Recursion problem

2002-10-08 Thread JRomero

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;
?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] CGI recursion problem

2002-10-08 Thread JRomero

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;
?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php