pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dan Wilson <killroyboy@yahoo.com>
To: pgsql-php@postgresql.org
Subject: Re: is this list live?
Date: Tue, 17 Oct 2000 14:09:03 -0700 (PDT)
Message-ID: <20001017210903.89208.qmail@web9505.mail.yahoo.com> (raw)

I've been doing this fairly well for a while now.  I
have two different sites that run off the same PHP
code.

I do it with the following methods.

1) Any HTML output that my PHP code generates is
appended within a single string variable ($strBody).

2) Separate files contain the basic layout and
navigation of the site. Within this file, I output the
string variable and any other dynamic ly generated
text.  If I need any dynamic navigation, then I have a
separate variable to contain the generated HTML and
then echo it in the appropriate location.

3) To more easily handle the look of the HTML
generated by the PHP code, I use style sheets.  Of
course, the use of css is defendant on your users, but
if you don't want to use style sheets, variables
defining your font attributes, etc can be defined in
an include file as well.

I don't know how much of a performance hit I take with
this method, but for the average site on the web, it
shouldn't be too much of a problem.

-Dan


--- Sam Hokin <sam@ims.net> wrote:
> However, one BIG issue I'm facing is with
> revisioning concurrent PHP and 
> HTML development.  Say one has 5 sites that use the
> same PHP but have 
> different HTML design.  How would one apply an
> update to the PHP on those 5 
> sites without touching the HTML? It seems almost
> impossible since the PHP 
> and HTML are so intertwined, you'd at least have to
> automatically generate 
> comments for parsing/replacing.  This seems to be a
> big, untreated issue in 
> server-side scripting in general.  Of course, not
> that many people develop 
> multiple sites that use the same PHP code with
> different HTML, but I do.


__________________________________________________
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.yahoo.com/



view thread (14+ messages)  latest in thread

Message-ID: <20001017210903.89208.qmail@web9505.mail.yahoo.com>
Permalink:  ../20001017210903.89208.qmail@web9505.mail.yahoo.com/
Also on:    postgresql.org/message-id/20001017210903.89208.qmail@web9505.mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: killroyboy@yahoo.com
  Subject: Re: is this list live?
  In-Reply-To: <20001017210903.89208.qmail@web9505.mail.yahoo.com>
  References: <20001017210903.89208.qmail@web9505.mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox