using copy() and move_uploaded_file() error message: failed to open stream - php
<p>I am using <code>copy</code> and <code>move_uploaded_file()</code> copy(/tmp/phpJ0lg4r.jpeg) [function.copy]:  it gives me the error <strong>failed to open stream: No such file or directory in</strong></p>

<p>I do not think there is an error in the code, but its the image temp path somewhere the error.</p>

<p>Any ideas to why?</p>

<p>--EDIT--</p>

<ol>
<li>The file permission is :777</li>
<li>Using only move_uploaded_file</li>
</ol>

<p>---CODE--</p>

<pre><code>&lt;form method="post" enctype="multipart/form-data" action=""&gt;  
        &lt;INPUT NAME="u" TYPE="file" size="90"&gt;
    &lt;input type="submit" value="submit"&gt;
&lt;/form&gt;


move_uploaded_file($HTTP_POST_FILES['u'.$i]['name'],"Path_Of_Directory");
</code></pre>

<p>Though there are several checks of the type of file, this is the basic.  It just does not copy or move the file.</p>
