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 BJMurphy on 05/24/07 20:22

On May 24, 4:09 pm, "laredotorn...@zipmail.com"
<laredotorn...@zipmail.com> wrote:
> Hi,
>
> 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?
>
> Curious how you would approach this or what you have done if in a
> similar situation.
>
> - Dave

Personally, I would keep one code base if at all possible. I would set
a variable at some point for the images directory, and maintain
parallel sets of images for each client. Then every <img> tag would
just have the variable as part of the src path.

 

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

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация