Announcement

Collapse
No announcement yet.

Storing Images

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • csoonyen
    started a topic Storing Images

    Storing Images

    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


Related Topics

Collapse

Working...
X