PDA

View Full Version : Storing Images


csoonyen
Wed 22nd Aug '01, 10:56pm
I have problems storing images into a folder, these are my codings, please check if there is any error in it......


$ext = substr("$mainimage", -3, 3);
$path = "../admin/image/";
$filename = time().".".$ext;
$image = $path.$filename;
//copy($mainimage, $image);
echo "$mainimage";
//$exec = exec("cp $mainimage $image");


Why when I tried to :
echo "$mainimage";
The result comes out as c:\\left.gif
Why is there two of these "\\"


Please Help! thank youu


:confused: