Managing and developing multiple sites

This is a discussion on "Managing and developing multiple sites" within the Website Planning section. This forum, and the thread "Managing and developing multiple sites are both part of the Planning Your Website category.



Go Back   Webforumz.com > Main Forums > Planning Your Website > Website Planning

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Dec 5th, 2007, 18:57
Aso's Avatar
Aso Aso is offline
Chief Moderator

SuperMember
Join Date: Oct 2007
Location: UK
Posts: 993
Blog Entries: 2
Thanks: 5
Thanked 21 Times in 19 Posts
Send a message via Skype™ to Aso
Question Managing and developing multiple sites

Just wondering how everyone else goes about developing and managing multiple sites?

In more detail, the reason why I ask is that my root folder (localhost) holds all the various sites I'm working on (in their individual folders). I tend to use

PHP: Select all

 $_SERVER['DOCUMENT_ROOT'
in PHP includes and '/' in URL's to relate to the server root

Of course when the sites are in subfolders, things go a little pear shaped and I end up copying and pasting sites into the root during work then putting them back in their folder afterwards (which is a little tedious).

Is there a better way around this? Or should I just refrain from the above techniques?
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
Reply With Quote

  #2 (permalink)  
Old Dec 6th, 2007, 18:00
Up'n'Coming Member
Join Date: Jun 2007
Location: Birmingham, UK
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Managing and developing multiple sites

Hi, I normally have a config.php file even for smaller projects.
In the config file I have something like
Code: Select all
define('BASEDIR', $_SERVER['DOCUMENT_ROOT'].'/projectsubdir');
Then I only have to remember to edit one line in the config file, when uploading the content to the live server.
Reply With Quote
  #3 (permalink)  
Old Dec 6th, 2007, 19:05
Junior Member
Join Date: Nov 2007
Location: earth
Age: 30
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Managing and developing multiple sites

im new to this
but i use CMS to do these thing
Reply With Quote
  #4 (permalink)  
Old Dec 6th, 2007, 19:36
Aso's Avatar
Aso Aso is offline
Chief Moderator

SuperMember
Join Date: Oct 2007
Location: UK
Posts: 993
Blog Entries: 2
Thanks: 5
Thanked 21 Times in 19 Posts
Send a message via Skype™ to Aso
Re: Managing and developing multiple sites

Hey hscmitz that sounds perfect! How do you incorporate the config file into your project? Do you include it in every page or similar?
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
Reply With Quote
  #5 (permalink)  
Old Dec 6th, 2007, 19:58
Up'n'Coming Member
Join Date: Jun 2007
Location: Birmingham, UK
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Managing and developing multiple sites

Quote:
Originally Posted by aso186 View Post
Hey hscmitz that sounds perfect! How do you incorporate the config file into your project? Do you include it in every page or similar?
Yes the config file is included at the top of every page.
Depending on the complexity of the application the config file will also contain additional information, such as database information or email adresses for sending any contact forms.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
templates for developing. luv2php Scripts and Online Services 4 Jul 22nd, 2008 23:33
Developing a database & upload Aso Databases 8 Nov 23rd, 2007 06:59
How Would I Go About Creating Developing this Monster?! derblutenkat Flash & Multimedia Forum 3 Feb 10th, 2006 14:05


All times are GMT. The time now is 09:04.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43