[eluser]Xeroxeen[/eluser]
Hi i want to get all the characters before last forward slash of a url.
Example -
"/public/images/userid/image.png" from this i want to get,
/public/images/userid/ only.So when i'm searching i got this.But it's not working.
Code:
$dir=substr( $imagepath, 0, strrpos( $imagepath, '/' ) );
plz help to solve this....