> > I need to know what is the most secure and reliable way to put
permissions
> > on a .php file.
> > I usually put it as rw-r-r, is this good or is there a better way of
> > arranging the permissions?
> >
>
> Depends on your environment.  I usually have mine set up as rw-rw---- 
> (directories as rwxrwx---) with the owner the same as what my webserver
> runs as (apache), and group writable so that multiple people can edit
> them.  Even if you're the only one who is going to edit the files, and
> you're the owner of the files and you're set up rw-r--r--, you may run
> into problems if php/Apache needs to write to the file (unless Apache is
> running as you).

Well, I want to have the most security for my .php file because it stores
passwords. Besides if there is no permissions set for the 'world' how can
someone's browser use the .php file? shouldn't it atleast have a read or
execute (I'm not sure, please comment on this) persmission?

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

Reply via email to