FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Showing last part of a directory
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Showing last part of a directory [message #175454 is a reply to message #175430] Wed, 28 September 2011 18:31 Go to previous message
tamouse is currently offline  tamouse
Messages: 5
Registered: September 2011
Karma:
Junior Member
On Thursday, September 22, 2011 1:32:34 PM UTC-5, houghi wrote:
> I have a parameter with the content of e.g.
> $film="/media/video/download/tv/Lost Girl" All I want is the 'Lost Girl'
> part so it becomes $film="Lost Girl"
>
> I am a bit at a loss as to what to use. Most likely trivial to do, I am
> sure, but my knowledge of php is too limited that I am not even sure
> what to enter as a search.

Simply $film=basename($film);

http://php.net/manual/en/function.basename.php
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Config problem?
Next Topic: best editor
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 20 03:54:17 GMT 2024

Total time taken to generate the page: 0.06904 seconds