RE: [PHP] Setting permissions such that file can be included but not open directly
| From: | Kim Madsen | Date: | Mon, 18 Apr 2005 06:03:28 +0000 |
| Subject: | RE: [PHP] Setting permissions such that file can be included but not open directly | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-213251@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Mike [mailto:php@crazyted.com]
> Sent: Friday, April 15, 2005 9:43 PM
> To: 'Dasmeet Singh'; php-general@lists.php.net
> Subject: RE: [PHP] 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