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.
CODE


<?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://www.your 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 ]

 

 

 


Reply