I've often heard that it's good practice to keep PHP files out of the web directory as much as possible (especially those containing sensitive info), just to be double-sure they can never be served accidentally as static files, even if some accidental future change means that Apache fails to execute them as PHP when requested. My web applications all live in one directory, so I'm not sure what the best approach is – it seems a bit messy to have a whole bunch of asked 26 May '12, 08:01 callum |
Hi, If you are developing the application yourself, you can have only the index.php file in the app directory, and use include() in it to include everything else from a directory below that level. answered 26 May '12, 08:15 todork Hi, thanks for your answer. I know I can use
(02 Jun '12, 15:37)
callum
You can store the application code in it's own directory attached to your user $HOME/application_code for instance. That way it will be separate from your other applications.
(02 Jun '12, 15:55)
aaront ♦♦
|