direct file download protection
<p>I have a folder for downloads on my server, i want to prevent direct access to that folder so i am makin it pass-protected with htaccess and i will push download with a php script. But i have some questions regarding <code>mkdir</code> and <code>file_exists</code></p>

<p>Do mkdir and file_exists works good for pass-protected folders ?</p>

<p>and</p>

<p>would i get any error while uploading file to that folder ?</p>

<p>AND</p>

<p>is this a good way of preventing direct access ?</p>

<p>thanks</p>
