NYCPHP Meetup

NYPHP.org

[nycphp-talk] Re: PHP_SELF problems

Jürgen Wind jwind at gmx.de
Mon Jan 1 11:56:18 EST 2007




Dan Cech wrote:
> 
> As I outlined earlier in this thread, this will _not_ work if php is
> running as a cgi, you'll get 'php4-cgi' instead of 'myfilename.php'
> unless you have cgi.fix_pathinfo set to 1 (default is 0).
> 
> Your previous comment regarding the fact that __FILE__ will give the
> name of the file it is placed in rather than the requested file is
> perfectly valid and worth keeping in mind.
> ---8<---
> Dan
> 
i wonder what  basename($_SERVER['PHP_SELF']) does on a CGI system,
from php running as module i get the filename only (w/o path and
QUERY_STRING)
-- 
View this message in context: http://www.nabble.com/Holiday-Greetings-to-Everyone...-tf2882582.html#a8114887
Sent from the NYPHP-Talk mailing list archive at Nabble.com.




More information about the talk mailing list