Define a temporary dir under www to upload files
<p>I'm trying to upload a file to the apache public_html directory.
Well I believe it deserves to mention that I'm on a virtual hosting environment running on a VPS with a few domains and sub-domains.</p>

<p>Usually on my XAMPP server I wouldn't have any problems loading files to temporary folder but on the new server It's impossible it gives me an error when trying to upload.</p>

<p>I've checked the superglobal $_FILES and I get this error:</p>

<pre><code>array(1) { ["file"]=&gt; array(5) { ["name"]=&gt; string(9) "test.gif" ["type"]=&gt; string(0) "" ["tmp_name"]=&gt; string(0) "" ["error"]=&gt; int(1) ["size"]=&gt; int(0) } }
</code></pre>

<p>I've tried to set a tmp folder on the server with get_init('/tmp') without any success.</p>

<p>Thank you very much for your kind attention.</p>
