Web Programming

Only members of this group can post notes and use other group resources. Join now to get access to all group resources!
Log in or register to join this group

PHP Get the file name from the full path  Viewed 23656 time(s), 2 post(s)., 1/10/2014 3:03:17 AM - by Khalid

Khalid
Khalid 1/10/2014 3:03:17 AM

How to get the file name from the full path in php?

This content has not been rated yet. 
113 Reputation 7 Total posts
1
Raji
Raji 1/10/2014 8:31:45 PM

basename is what you need

$filename = basename($fullpath)

This content has not been rated yet. 
61 Reputation 12 Total posts
2