look at your first post...
see how most of your code is red??/
this is because you missed a " somewhere and it's reading that whole thing as part of that
why?? Because \ is a note to PHP to ignore the next character and to parse it as if it were a regular character.. Solution?
$imgLocation = str_replace("\\\","/", $ptemp);
Should work.... The first \ says... dont use PHP to parse the next character... and the second \ is the actual \ that it's replacing.. They way you had it was telling it to ignore the " after your .
Hope that helps
on second thought... you might need three... i tried posting it with 2, and it came up with only one on the board, so i added three and it took it right.. maybe it is just a problem with the board display though... But i think it is sposed to be 2, not 3.. try both tho :-p