Jump to content
xisto Community
Sign in to follow this  
iGuest

Creating a settings file for your site (PHP)

Recommended Posts

Being a designer, sometimes it's easy to overlook the little things that you'll hate yourself for later on. For example, what if you change your domain name? Do you really want to change all 3254 links on your site?

Isn't there an easier way?
Yes

With a global settings file, you can avoid this altogether.

Here's a template for creating such a file.

<?php/********************************************************** *      Functions, Variables, Ect for Revamp                                       * *           Author:  VampyreVein                                                       * *                           * *              All rights reserved.                                                         * ********************************************************** *        Launch Date: Currently Beta testing                                      * *                                                                                                  * *     Version    Date              Comment                                           * *     1.0      1 August 2004                                                              * *                                                                                                  * *  NOTES:                                                                                     * *        Requires:  PHP 4.2.3 (or greater)                                           * *                   MySQL                                                                      * **********************************************************/// ---------------------------------------------------------//  ----XXXXX-x Site Info x-XXXXX------  //$Domain = "http://forums.xisto.com/no_longer_exists/ domain.com/";$SiteName = "Your Site Name";  //This name is printed on most pages, choose carefully.$Years = "Date of launch".date(Y); //The dates of your site [ date(Y) prints the current year ]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.