deny access to certain folder using php
<p>Is it possible to "deny from all" apache htaccess style using php. </p>

<p>I can't use htaccess because im using different webserver, so i wan't to use php to workaround it.</p>

<p>So let say user are trying to access folder name 'david', all content and subdirectory are denied from viewing.</p>
