On Monday 05 July 2004 17:48, Jason Wong wrote:
> On Monday 05 July 2004 16:18, Tumurbaatar S. wrote:
> > Generally, it isn't a PHP related but...
> > I'm not a Linux/Apache user and know nothing
> > about how to manage permissions there.
> > I need to disable browsing for some of subfolders
> > on my site but php scripts located in these subfolders
> > should be accessible by php's include/require.
> > It's easy to do on Windows/IIS but how to do it on Linux/Apache?
>
> Assuming you mean if someone goes to:
>
>   http://www.yoursite.com/subfolder/
>
> then they should not see the list of files in subfolder, you want to look
> at the <Options Indexes> directive. Look on the apache site for detailed
> info.

A further note: you should probably deny access to the directory in question 
(using the appropriate directive). This will prevent the webserver from 
serving any files in that directory but php will still be able to include 
said files.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Work consists of whatever a body is obliged to do.
Play consists of whatever a body is not obliged to do.
                -- Mark Twain
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to