retrieved upload images in php
<p>i want to retrieve image from client (ipod) programmed in objective c i use the following code</p>

<pre><code>$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";
}</code></pre>

<p>this code upload five to six images successfully and after that it gives me error i.e</p>

<pre><b>Notice</b>:  Undefined index:  photo in <b>/home/abc/public_html/abc.com/fish/mycatch_post.php</b> on line <b>42</b><br />
<b>Notice</b>:  Undefined index:  photo in <b>/home/abc/public_html/abc.com/fish/mycatch_post.php</b> on line <b>53</b><br/>
could not upload image</pre>
