You are here: Re: [PHP] Setting permissions such that file can be included but not open directly « PHP « IT news, forums, messages
Re: [PHP] Setting permissions such that file can be included but not open directly

Posted by Dasmeet Singh on 04/18/05 10:57

Kim Madsen wrote:
>>-----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
Thanks that works as well :)

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация