i aşağıdaki kodu kullanabilirsiniz objektif ci programlanmış istemcisi (ipod) dan görüntü almak istiyorum
$TARGET_PATH = "pics/";
$image = $_FILES['photo'];
$TARGET_PATH =$TARGET_PATH . basename( $_FILES['photo']['name']);
$TARGET_PATH =$TARGET_PATH.".jpg";
if(file_exists($TARGET_PATH))
{
$TARGET_PATH =$TARGET_PATH .uniqid() . ".jpg";
}
if (move_uploaded_file($image['tmp_name'], $TARGET_PATH))
{
$TARGET_PATH="http://www.".$_SERVER["SERVER_NAME"]."/abc/".$TARGET_PATH;
echo $TARGET_PATH;
echo "image upload successfully";}
else{
echo "could not upload image";
}
Bu kodu başarıyla 05:55 upload görüntüleri ve bundan sonra bana hata veriyor yani
Notice: Undefined index: photo in /home/abc/public_html/abc.com/fish/mycatch_post.php on line 42
Notice: Undefined index: photo in /home/abc/public_html/abc.com/fish/mycatch_post.php on line 53
could not upload image