I'm not sure what php command to use to get the result I'm looking for, maybe some of the gurus out there can offer up some insite.
I need to be able to get a directory path from a URL -- normally I could use preg_match() but the twist is that the directory name is almost always going to be different.
For example, in:
http://www.domain.com/thisdirectory/
i would need to get 'thisdirectory' into a variable for later use -- but that's where the problem is, not sure how to do that.
Can anyone offer up some ideas?
Always appreciated,
~ Chris