View previous topic :: View next topic |
Author |
Message |
dman777 Veteran
Joined: 10 Jan 2007 Posts: 1004
|
Posted: Wed Sep 19, 2012 9:17 pm Post subject: PHP Fast CGI cgi.fix_pathinfo Question |
|
|
I Quote: | ; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP's
; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting
; this to 1 will cause PHP CGI to fix its paths to conform to the spec. A setting
; of zero causes PHP to behave as before. Default is 1. You should fix your scripts
; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
; http://php.net/cgi.fix-pathinfo
cgi.fix_pathinfo=0
|
I read where this is supposed to be 0 so PHP does not guess what the pathname should be incase it the pathname is incorrect. But from reading PHP documentation, it sounds like the other way around. Which should it be so PHP will not execute any non php files? |
|
Back to top |
|
|
turtles Veteran
Joined: 31 Dec 2004 Posts: 1698
|
Posted: Thu Sep 27, 2012 5:55 pm Post subject: |
|
|
I was wondering the same thing what did you conclude?
I found this post here With some useful information. _________________ Donate to Gentoo |
|
Back to top |
|
|
|