Re: Setting permissions such that file can be included but not open directly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kim Madsen wrote:
-----Original Message-----
From: Mike [mailto:php@xxxxxxxxxxxx]
Sent: Friday, April 15, 2005 9:43 PM
To: 'Dasmeet Singh'; php-general@xxxxxxxxxxxxx
Subject: RE:  Setting permissions such that file can be included

but

not open directly


directly to private/includefile.php can run the script
without authorising themselves...

Is it possible to set folder permission such that files
inside it cant be open directly but could be included?

Can you just give read permissions -only- to the user that PHP runs as

and

not these other users?


Just put these kinda directives outside webscope, I.E.:

/home/USER/public_html/
/home/USER/private/

--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/Systemdeveloper
Thanks that works as well :)

-
Free Website Promotion - A Complete Guide
http://hostwindow.info/web-hosting/9/free-website-promotion/1/

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux