TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 06-08-2009, 02:00 PM   #1 (permalink)
The Contributor
 
oMIKEo's Avatar
 
Join Date: Jan 2008
Location: Leeds
Posts: 52
Thanks: 7
oMIKEo is on a distinguished road
Default Management options for multiple websites?

Hi guys,

I currently have 40+ websites that I manually manage. Each site has its own unique design and is structured slightly differently but has many of the same sections.

I am obviously looking into developing a cms to manage all the sites from a single interface, storing all information in a single database and files in a single location.

My initial idea is to code this cms and have a php function to generate the front end output for each cms elements. Then for each site have a template php page for the data to feed into.

These elements will include anything from simple text pages, photo galleries, message boards, polls, questionnaires, mixed content pages (videos/photos/text), etc.

How would you approach this?

Thanks!
Send a message via MSN to oMIKEo
oMIKEo is offline  
Reply With Quote
Old 06-09-2009, 07:09 PM   #2 (permalink)
The Contributor
 
Join Date: Jun 2009
Location: Seattle, WA
Posts: 76
Thanks: 1
rguy84 is on a distinguished road
Default

Not sure what you are wanting here. But I would say build a CMS like Wordpress' back end. I have a wordpress.com blog, and a self-hosted one. Wordpress.com has a stats plugin, so I can check both blog's stats, via wp.com. I just select which blog via a drop down. The same goes for themes...

While that is a bit of a long winded answer, I hope you kind of get what I am saying...
Send a message via AIM to rguy84 Send a message via MSN to rguy84 Send a message via Yahoo to rguy84 Send a message via Skype™ to rguy84
rguy84 is offline  
Reply With Quote
Old 06-11-2009, 09:10 AM   #3 (permalink)
The Contributor
 
dschreck's Avatar
 
Join Date: Nov 2007
Location: California
Posts: 82
Thanks: 0
dschreck is on a distinguished road
Default

The way i've done it in the past... this may vary depending on your server set up.

What I've done, is have a common base path for my core files.

So my CMS core may reside...

/home/cms/core

while all of my clients will reside in their own home folder

/home/client1/cms
/home/client2/cms

etc etc

From there, inside of each web folder, is a config folder.

The config will set up the basic define() for each project, including the CMS base.

When the build is ready, I invoke my build script, which moves all of the files down in directories, and then rsyncs them to the correct machine that they are hosted on.

Really, the trick is to set up your file directory, and build script, in a manner that allows you to 'overload' files.

So, example:

/core/
/admin/
/include/
/js/
/css/
main.css
..etc..

/client1/cms/
index.php
/css/
main.css


Now, in this example, the build script would copy all of the files from /core/ and put them in a temp directory.
Then, it would copy all of the files from /client1/cms/ and put them in that temp folder, overwriting the files that it conflicts with.

This allows you to over ride something per project.

Then, the trick is to just set the rsync paths and boom! you're in business managing code base for a whole lot of clients :)
__________________
Where I Ramble: http://www.iwilldomybest.com/
What I do: Zynga Game Network
Senior Software Engineer at CityVille
dschreck is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB 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
Freelance Suite: Client & Project Management Software CLCook Show Off 2 09-14-2008 10:50 AM
Memory Management with Declare Wildhoney Advanced PHP Programming 2 10-18-2007 03:44 PM


All times are GMT. The time now is 01:32 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design