File upload Not working FIXED
<p>Note: FIXED:
Fixed the problem by inserting   <code>mkdir('./upload');</code></p>

<p>First things first:
Yes I've done:</p>

<ol>
<li>set permission to the map</li>
<li>tested it on localhost</li>
<li>checked phpinfo if my ini was ok with fileupload</li>
<li>checked if I had the right file extention size etc...</li>
<li>print_r($_FILES['file']['error']) gives: 0</li>
<li><a href="http://stackoverflow.com/questions/14449731/uploading-file-via-php-doesnt-work?rq=1">this</a> > looked like the same problem, but tried the $succes = 1 and the print_r error gives 0 </li>
</ol>

<p>Now the problem is that I want to upload pics with the standard simple form and controlling from the w3schools website see <a href="http://www.w3schools.com/php/php_file_upload.asp" rel="nofollow">here</a>. I've changed only the name of the files and the direction to:</p>

<pre><code>move_uploaded_file($_FILES["file"]["tmp_name"],
  "/upload/" . $_FILES["file"]["name"]);
      echo "Stored in: " . "/upload/" . $_FILES["file"]["name"];
}
</code></pre>

<p>The result I get when I uploaded the test.jpeg file is:</p>

<pre><code>Upload: test.jpeg
Type: image/jpeg
Size: 43.482421875 kB
Temp file: /tmp/phpupGzod
Stored in: /upload/test.jpeg
</code></pre>

<p>I've done a lot of research but couldn't find the problem so can someone help me? 
I'm hosting with the Hosting2go company. The /temp is in the root folder as my httpdocs folder where my code is stored.</p>
