SCRIPT_FILENAME Vs. PATH_TRANSLATED

David Howe <[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <[email protected]>
Hello,
I co-develop a php application with which a few users have trouble 
running. They get failed to open stream fatal errors.
I have been puzzled for some time and finally had one user allow me to 
see phpinfo() on his site.
What I found was that he had a blank $_SERVER['SCRIPT_FILENAME'] but 
had a value in $_SERVER['PATH_TRANSLATED'] , which is something I had 
never seen before. Using the later to build a path to the file solved 
the problem.
I think this issue is related to the use of fastCGI, since the few 
users I have helped show it enabled.
My cure was to write an if statement:
if translated then translated, else filename.
That works fine.
But curiosity is killing this cat.
Thus I trouble you folks.....
Happy New Year,
David

___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.