Forum Moderators: coopster

Message Too Old, No Replies

path info nuttiness under fastcgi

         

ianevans

8:20 pm on Mar 9, 2008 (gmt 0)

10+ Year Member



I'm currently running the php module under apache but I'm making the transition to FastCGI and Nginx.

Some of my scripts use _SERVER["PATH_INFO"] but when run as CGI, I'm seeing some weirdness:

Apache Module:
/test.php/123/456: _SERVER["PATH_INFO"] is /123/456
/test.php: _SERVER["PATH_INFO"] is blank

FastCGI:
/test.php/123/456: _SERVER["PATH_INFO"] is /123/456
/test.php: _SERVER["PATH_INFO"] is /test.php

Not sure why it's showing the filename instead of being empty. Is _SERVER["PATH_INFO"] usually nutty in the CGI environment?

coopster

6:54 pm on Mar 10, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



No, but it can be handled differently during different stages of the request. Have a look at the FastCGI documentation.
[httpd.apache.org...]