|
Posted by Oliver Grδtz on 05/25/07 02:57
laredotornado@zipmail.com schrieb:
> I'm using PHP 4.4.4 with Apache 2.2 on LInux. I have been building a
> web site, and now a client wants that same site, only he wants all the
> graphics substituted with his own. There could potentially be more
> clients who want the same site but with custom graphics. What makes
> more sense?
>
> 1. Maintain a single code base, only have "if/else" blocks when it
> comes to "<img src ...>" tags?
> 2. Maintain two separate code bases except the images directory would
> be different for each client (not sure how updating my code would
> work, if I'd have to copy the same PHP files to multiple sites).
> 3. Some other strategy?
If you have full control over the server: 3. !
I'd use Subversion for the codebase: Use the trunk for your development
and branches for the deployed sites. The branches remain stable and if
you feel that a particular site needs some of the improvements you can
merge the changes onto that branch.
And I'd keep the graphics out of version control.
OLLi
--
"I can't talk to you right now, OK. I'm having sex with a white woman."
[L.A. Crash]
Navigation:
[Reply to this message]
|