I have: $row_homeshowpict['pict1'] which contains the path to an image(../Albums/home/image.jpg) I need to get rid of the "../" I can't seem to get the syntax right. I have tried: $newname = str_replace("../", "", $row_homeshowpict['pict1']) but get no joy. Any suggestions? Sorry I should have posted this in the newbie section DD
I just ran this code
$row_homeshowpict['pict1'] = "../Albums/home/image.jpg"; $newname = str_replace("../", "", $row_homeshowpict['pict1']); echo $newname;
and got
Albums/home/image.jpg 😕
Well I don't know what I was doing wrong, but that works now. Thanks