|
-
Getting last part of URL
Ok, I'm stumped! I need to get the highest folder name in the URL, such as the examples below:
www.fakesite.com/folder/this
www.fakesite.com/folder/file/this/
www.fakesite.com/this/index.html
will all yield 'this'.
How do I approach this using PHP or JavaScript?
Thanks,
M
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
|
Bookmarks