A community in which webmasters can ask for help with topics such as PHP coding , MySQL , IT jobs, web design, IT security.
Current location:homephp forumphp talk in 2008 yearremove everything but the filename php - page 1
User InfoPosts
remove everything but the filename php#1
I'm trying to get rid of everything before the filename ex:

/home/mike/whatever/test_1.txt


leaving only test_1.txt

what would the simplest way?

thanks

posted date: 2008-12-11 12:25:00


Re: remove everything but the filename php#2
I had made out the solution of this problem. click to view my topic...

hope that hepls.

posted date: 2008-12-11 12:25:01


Re: remove everything but the filename php#3
basename()

posted date: 2008-12-11 12:28:00


Re: remove everything but the filename php#4
Quite possibly the best answer I've seen on stackoverflow.

posted date: 2008-12-11 13:32:00


Re: remove everything but the filename php#5
Simple and too the point, perfect.

posted date: 2008-12-11 16:05:00


Re: remove everything but the filename php#6
Ditto to the previous comments.

posted date: 2008-12-11 17:17:00


select page: « 1 »
Copyright ©2008-2017 www.momige.com, all rights reserved.