Image upload form gives me "No such file or directory" error
<p>PHP:</p>

<pre><code>if((isset($_POST['title']))&amp;&amp;(isset($_POST['body']))){ 

$maxSize = 4000; 
$acceptType = array( 
     'png' =&gt; 'image/png',
     'jpe' =&gt; 'image/jpeg',
     'jpeg' =&gt; 'image/jpeg',
     'jpg' =&gt; 'image/jpeg',
     'gif' =&gt; 'image/gif',
);

$title = mysql_real_escape_string($_POST['title']); 
$body = mysql_real_escape_string($_POST['body']); 


if((isset($_FILES['image']))&amp;&amp;(is_uploaded_file($_FILES["image"]["tmp_name"]))){ 

   $image_dest = "/it/images/".rand(1,1000)."-".basename($_FILES['image']['name']);

   if($_FILES['image']['size'] &lt;= $maxSize*1024) {

       if(in_array($_FILES['image']['type'], $acceptType)) {

           if(move_uploaded_file($_FILES['image']['tmp_name'], $image_dest)) // line 44
                $message="Ok";
        }
   }



}
}
</code></pre>

<p>HTML:</p>

<pre><code>&lt;form action="createblog.php" method="post" enctype="multipart/form-data"&gt;
    &lt;p&gt;
        &lt;label&gt;Title:&lt;/label&gt;
        &lt;input type="text" size="100" name="title"&gt;
    &lt;/p&gt;
    &lt;p&gt;
        &lt;label&gt;Image:&lt;/label&gt;
        &lt;input type="file" name="image"&gt;
    &lt;/p&gt;
    &lt;p&gt;
        &lt;label&gt;Image Caption:&lt;/label&gt;
        &lt;input type="text" size="100" name="imagecaption"&gt;
    &lt;/p&gt;
    &lt;p&gt;
        &lt;label for="editor1"&gt;Body:&lt;/label&gt;
        &lt;textarea class="ckeditor" cols="50" id="editor1" name="body" rows="10"&gt;&lt;/textarea&gt;
    &lt;/p&gt;
    &lt;p&gt;
        &lt;input type="submit" value="Submit" /&gt;
    &lt;/p&gt;
&lt;/form&gt;
</code></pre>

<p>Why I get this error ?</p>

<pre><code>Warning: move_uploaded_file(/it/images/865-Star_Trek_Logo.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory in /home/content/08/1936/html/it/createblog.php on line 44

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/php0hvJSh' to '/it/images/865-Star_Trek_Logo.jpg' in /home/content/08/1936/html/it/createblog.php on line 44
</code></pre>
