Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Creating a settings file for your site (PHP)
VampyreVein
post Feb 23 2005, 06:11 PM
Post #1





Guests






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 ]

Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. 2 Gb Free For File Storage Or Web Hosting(12)
  2. Which File Extension Are You?(48)
  3. Your Web Site?(69)
  4. does this free web site come with a shopping cart(9)
  5. Which Forums Would You Prefer?(13)
  6. I Need More Users And Hits On My Forum(17)
  7. N E One Have A Site(4)
  8. How Did You Feel When Your Site Was Approved(27)
  9. Oh,google Deleted My Site.(6)
  10. Internet Shopping Sites(0)
  11. Is There A Cheap Way Of Getting Ipb Onto My Site?(10)
  12. Why And When Did You Make Your First Site?(62)
  13. Full Tutorials For Creating Website...(12)
  14. Game Site(13)
  15. New Site(2)
  1. Making A Site(14)
  2. Globat.com Webhosting Just Charged My Card For An Unrequested Upgarde!(5)
  3. Review Site: Webmasters-forum.info(0)
  4. Use A Signature In Your Emails To Get Visitors To Your Site.(1)
  5. Need File Host(7)
  6. Free Advertising!(1)
  7. Looking For Staff And Members!(16)
  8. Look At My Site, And Forum(8)
  9. Will There Be A free Image, File, Video And Flash Host?(5)
  10. Can You Crack This(3)
  11. Can I Host A Chinese Site Here?(13)
  12. Secure File Transfer For Mainframe Systems(2)
  13. Can Anyone Post Your Free Site To Show Samples?(8)


 



- Lo-Fi Version Time is now: 6th October 2008 - 10:37 PM