|
Posted by Toby A Inkster on 07/23/07 12:10
tim braun wrote:
> what are the normal permission to use for php scripts ?
400 is the minimum you can get away with, but it depends on the ownership
of the script, and which UID the web server is running under.
644 is generally best.
This isn't a PHP-specific question: the same advice applies to HTML, CSS,
images, video and audio files and so on that you wish to serve via the web.
For command-line PHP scripts, 755.
--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 32 days, 15:47.]
Parsing an HTML Table with PEAR's XML_HTTPSax3
http://tobyinkster.co.uk/blog/2007/07/20/html-table-parsing/
Navigation:
[Reply to this message]
|