[nycphp-talk] Re: PHP_SELF problems

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

>I have not really followed this discussion, but when i see something like
>"$_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
>:-) ed 

no need for regex here, a simple  basename($_SERVER['SCRIPT_NAME']) will do 
Happy New Year!
View this message in context:
Sent from the NYPHP-Talk mailing list archive at

More information about the talk mailing list