Look over at htaccess statements. You can simply create an .htaccess file on a folder (inside webroot) and then add there:
Order allow,deny Deny from all And you won't be able to access that directory through apache (hence through a browser), so you'll be left with readfile() and stuff from PHP. Not a hard find on google, if you would've searched for "restrict web directory" first result would've been: http://www.udel.edu/topics/internet/WWW/restricting.html -MI --------------------------------------------------------------------------- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog: http://www.MarianoIglesias.com.ar -----Mensaje original----- De: [email protected] [mailto:[EMAIL PROTECTED] En nombre de rockit Enviado el: Viernes, 25 de Mayo de 2007 01:57 p.m. Para: Cake PHP Asunto: Restricted Directory only accessible through Cake(PHP) my thought was to place the directory outside of the public_html directory (running on a shared server cpanel), but how would i access that via cake? i've done some searches on google but haven't found much yet, i'm thinking i'm not phrasing it properly. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
