|
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.
[Back to original message]
|