473,394 Members | 1,879 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Web Site(s) Architecture Help! (Multiple sites)

I have developed an engine that I use for all of my clients web sites.
They are all
the same type of site, some use features A, B, & C. Some web sites just
use features A & B.

My issue is that in order for me to make a new site, I am copying the
files and then adding in the design/unique look.
This makes developing new features and fixing old features a huge
hassle because:

1) Too many files to change
2) Custom content sometimes required but not managed
3) Unable to use CVS due to all of the different files
Solution:

I need to be able to have one set of files that ALL of my clients sites
will run off of.
Each site will still:

- Have custom templates
- Custom Database (Data in Database, Not Structure)
- Custom Content (Database)
- Unique Domain(s)
- Customize Features (My engine is custom, and not a typical web site
engine.)

The development work of making features customizable and that sort of
thing is no problem.
But getting my sites to all run off of one set of files is where I need
some input.
- How can I run all of my sites off of one set of files and have each
domain work individually?

- Does anyone have any examples of an architecture that would allow me
to run all of these sites off of one set of files?
Thank you very much!
Tim

Jul 17 '05 #1
1 1861
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

de*********@hotmail.com wrote:

| I have developed an engine that I use for all of my clients web sites.
| They are all
| the same type of site, some use features A, B, & C. Some web sites just
| use features A & B.
|
| My issue is that in order for me to make a new site, I am copying the
| files and then adding in the design/unique look.
| This makes developing new features and fixing old features a huge
| hassle because:
|
| 1) Too many files to change
| 2) Custom content sometimes required but not managed
| 3) Unable to use CVS due to all of the different files
|
|
| Solution:
|
| I need to be able to have one set of files that ALL of my clients sites
| will run off of.
| Each site will still:
|
| - Have custom templates
| - Custom Database (Data in Database, Not Structure)
| - Custom Content (Database)
| - Unique Domain(s)
| - Customize Features (My engine is custom, and not a typical web site
| engine.)
|
|
|
| The development work of making features customizable and that sort of
| thing is no problem.
| But getting my sites to all run off of one set of files is where I need
| some input.
|
|
| - How can I run all of my sites off of one set of files and have each
| domain work individually?
|
| - Does anyone have any examples of an architecture that would allow me
| to run all of these sites off of one set of files?
| Thank you very much!

What I have done on one server is to create a directory where all the
main working files reside. This is where all the generic code that the
sites start development with are held.

I use apache, so in my .htaccess file, I use:
php_value include_path
"/path/to/this/site:/path/to/site-specific/includes:/path/to/global/includes:/path/to/pear"

I can then simply say include 'myfile.php'; This will search the include
path in order and find the file I am looking for. When I create a custom
file for a site, I just put it under the /path/to/site-specific/includes
directory. Then when I change a generic file, all the sites that use
that are changed at once, and I'd only have to edit customized files.

HTH

- --
Justin Koivisto - ju****@koivi.com
http://www.koivi.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFB2Wjtm2SxQ7JEbpoRAlFOAJ9wKVFuCCS5rjvPSzmKo1 U9QvzaUACfbJWT
W+Ighx5lq0J2/w9mP09ASPM=
=RvDg
-----END PGP SIGNATURE-----
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

28
by: Me | last post by:
I would like to redesign my existing site into php using classes. I am not the most experienced developer with PHP, and would like to know if anyone can give me some input on a starting point for a...
0
by: Corinna K | last post by:
Hi. I have a 3-tier system where the presentation tier is the web. The site has login and enrollment functionality and I have the classes that any online store site would have (eg order, customer...
25
by: Dave Turner | last post by:
I know that its impossible to completely prevent somebody from ripping a site (or cracking software) if that person has the skills and the time/patience, but there are tricks that can be employed...
2
by: hans | last post by:
Hi! I am new to .NET (coming from Java). We have to implement a desktop application which extracts data from a database, does some analysis, filtering etc. and displays the results. I have...
3
by: Mark Kamoski | last post by:
Hi-- Please help. How can one implement a simple site search for an ASP.NET site that consists of ASPX and ASCX content pages? I have a small site (of less than 100 content pages). The...
3
by: Griff | last post by:
Investigating possible architecture for an ASP.NET web solution. I am familiar with the architecture of two multi-site systems. Neither are by any means ideal. One is pure Classic ASP and the...
3
by: bmntech | last post by:
I want to create a client app, adding value to and building on my Web app. The user of this client app will be able to seamlessly access the public web site, but will also have additional...
0
by: brown | last post by:
We started an asp.net 2.0 web site with the new login controls. It seems like the Membership and MembershipUser functionality is attached to the web site, so all the web pages for the site will...
2
by: localp | last post by:
what is a web site and file architecture ? why do we write it ? and what is its content ? plzz help me.
28
by: parag_paul | last post by:
http://concentratedlemonjuice.blogspot.com/2008/06/about-c-puzzles-on-my-blog.html I actually am searching for more work done on C now, today there are many sites that will provide you college...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.