NYCPHP Meetup

[nycphp-talk] Re: PHP_SELF problems

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


>I have not really followed this discussion, but when i see something like
this:
>"$_SERVER['SCRIPT_NAME'] will contain the full _filesystem_ path,
>which is not what we're after."
>
>Can you just do a 1 line regex and pull out what you need? And you are all
set.
>
>:-) ed 

no need for regex here, a simple  basename($_SERVER['SCRIPT_NAME']) will do 
Happy New Year!
-- 
View this message in context: http://www.nabble.com/Holiday-Greetings-to-Everyone...-tf2882582.html#a8112979
Sent from the NYPHP-Talk mailing list archive at Nabble.com.




More information about the talk mailing list