Organizing PHP includes in your development environment
Posted
by
Andrew Heath
on Stack Overflow
See other posts from Stack Overflow
or by Andrew Heath
Published on 2011-01-07T00:51:05Z
Indexed on
2011/01/07
0:53 UTC
Read the original article
Hit count: 228
php
|code-organization
I'm auditing my site design based on the excellent Essential PHP Security
by Chris Shiflett.
One of the recommendations I'd like to adopt is moving all possible files out of webroot, this includes includes.
Doing so on my shared host is simple enough, but I'm wondering how people handle this on their development testbeds?
Currently I've got an XAMPP installation configured so that localhost/mysite/
matches up with D:\mysite\
in which includes are stored at D:\mysite\includes\
In order to keep include paths accurate, I'm guess I need to replicate the server's path on my local disk? Something like D:\mysite\public_html\
Is there a better way?
© Stack Overflow or respective owner