Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PHP Fast CGI cgi.fix_pathinfo Question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
dman777
l33t
l33t


Joined: 10 Jan 2007
Posts: 737

PostPosted: Wed Sep 19, 2012 9:17 pm    Post subject: PHP Fast CGI cgi.fix_pathinfo Question Reply with quote

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
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1206

PostPosted: Thu Sep 27, 2012 5:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum