Yes $PHP_SELF exists but it contains just the actual script. And therefore i
a function for extracting filenames from urls. I needed to extract the
scriptname from
the url to identify the navigation position....


"Stig S. Bakken" <[EMAIL PROTECTED]> wrote in message
> Marcus wrote:
> >
> > shouldn't the function basename() return only the
> > script part and not the query part?
> >
> > Yes i know it would make a difference if a filesystem could have '?' in
> > filenames or if you wanted to handle those for search operations. But
> > perhaps ther could be another switch or just a function
> > filename/scriptname()
> You're probably looking for the $PHP_SELF variable.  basename() is for
> file names, not HTTP paths.
>  - Stig

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to