How do I use PHP to grab the name of the file?

Posted by Sam on Stack Overflow See other posts from Stack Overflow or by Sam
Published on 2010-05-25T08:41:56Z Indexed on 2010/05/25 8:51 UTC
Read the original article Hit count: 139

Filed under:
|

Hi, what I want to do is PHP to look at the url and just grab the name of the file, without me needing to enter a path or anything (which would be dynamic anyway). E.G.

http://google.com/info/hello.php, I want to get the 'hello' bit.

Help?

Thanks.

© Stack Overflow or respective owner

Related posts about php

Related posts about linux