hi
I want to find a way to remove the last slash in a url, while keeping the others (if any) in!
so e.g.
www.bbc.co.uk/
would be converted to
www.bbc.co.uk
and likewise:
www.bbc.co.uk/blah/blah/blah/
would be converted to
www.bbc.co.uk/blah/blah/blah
i've had a look in the manual, and found stristr(), but i'm a bit confused about it! is that the correct function to use?
if anyone should know the answer I'd be most grateful!