php görüntü adını değiştirmek

0 Cevap

hello i have the following code to change the image name of upload picture

$TARGET_PATH="pics/";
$TARGET_PATH =$TARGET_PATH . basename( $_FILES['photo']).'.jpg';
while (file_exists($TARGET_PATH))
    {
$TARGET_PATH =$TARGET_PATH . basename( $_FILES['photo']) . uniqid() . '.jpg';
}

Bu resmin veya dosyanın adını değiştirmek dont ama bu sadece bir nokta gösterir (.) Adı yani sonunda usantısı sho 1 => dosya.
2 => filefile9534803.

0 Cevap