BHB Posted March 6, 2012 Share Posted March 6, 2012 Just wondering if someone can show me what a live config file should look like.. Exactly as in book with exception of paths? Link to comment Share on other sites More sharing options...
Jonathon Posted March 7, 2012 Share Posted March 7, 2012 Like the book Link to comment Share on other sites More sharing options...
BHB Posted March 7, 2012 Author Share Posted March 7, 2012 Live=false?...should be true no? Link to comment Share on other sites More sharing options...
Jonathon Posted March 7, 2012 Share Posted March 7, 2012 $live = true; 1 Link to comment Share on other sites More sharing options...
theaceofthespade Posted April 1, 2012 Share Posted April 1, 2012 It depends on your site. You should include any sort of environment data, any functions that you use on almost every page, and any variables you need pre-defined. If you use object oriented stuff, it should include your autoloader, and if you do any custom error reporting, you should throw that in there as well. Mine for my site includes my autoloader, a constant that contains the url of my page, a constant that contains the domain name for my page, a short script for forcing the user to the https version of the site if they are supposed to be there, error handling routines, and a static class that safely handles the post, get, and cookie data. Recently, I added something that sets the default timezone as well. Your include file should not send anything but headers to the user. It should not echo anything at all; don't include a ?> at the bottom of the file either. Link to comment Share on other sites More sharing options...
Recommended Posts