surreal5335
01-05-2012, 01:28 AM
I need to parse a url using substr() or something similar based on its forward slashes.
In the end it will go from:
http://domain.com/mypage/one/
to dropping:
http://domain.com/
and leave only
mypage/one
notice The lack of the closing forward slash at the end of the original url. I appreciate any help in the matter
In the end it will go from:
http://domain.com/mypage/one/
to dropping:
http://domain.com/
and leave only
mypage/one
notice The lack of the closing forward slash at the end of the original url. I appreciate any help in the matter