RE: extracting foo.bar from path/to/file.php/foo.bar

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 
> [snip]
> What do I need to do to extract foo.bar from path/to/file.php/foo.bar
> [/snip]
> 
> The manual is your friend ;o)
> 
> http://www.php.net/basename/
> 

Beware that, in the case of an url like
"http://www.example.com/path/to/file.php/foo.bar?foo=bar&bar=foo";,
basename() will return everything past the last "/", in this case
"foo.bar?foo=bar&bar=foo".  

JM

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux