NYCPHP Meetup

NYPHP.org

[nycphp-talk] Development environment (server side)?

Brian Pang bpang at bpang.com
Fri Jul 30 13:05:39 EDT 2004


I do something similar, but I have it check either the DOCUMENT_ROOT or
the HTTP_HOST and adjust config vars (urls, paths, etc) accordingly.
That way I don't have to remember to change a var specifying dev/qa/prod

> I've lately started keeping all configuration information in a separate 
> config class, and that has really helped things out immeasurably.  As 
> long as the configuration info includes the URLs and directory paths, 
> the only thing different in each of these sites is the values in the 
> config class.  Everything else should just work.  And yes, I did learn 
> this practice through working with Mambo...





More information about the talk mailing list