You are here: Re: How would you attack this programming strategy? « PHP Programming Language « IT news, forums, messages
Re: How would you attack this programming strategy?

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]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация