If this is too 'big' of a solution (ie, you don't need all that
functionality) you could just 'include header.inc', 'include
footer.inc', etc.  Check the manual for details..

Although, templates will probably be a bit more flexible, I would
guess...

Ben

-----Original Message-----
From: Michel Laine [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 10, 2001 5:00 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Re: Using PHP in Web Pages

David Cox wrote:

> can someone here steer me in the correct direction?
>
> heres what i want to do. (im sure its possible)??
>
> i dont want to have to edit every web page when i change something.
can i
> make multiple pages, (say a header, footer, links, maintext, and then
use
> PHP to call those pages up and put them in certain places in a web
page?
> Without have to set up html frames? Maybe just add a line of code to
place
> it dynamicaly or something....
>
> thanks, dave

I think that you should take a closer look at Templates.
Templates do just about what you have described there.
Templates can be done with PHPlib or with an extension called
Fasttemplate.
There is even one called "cached fattemplate" out there.
I use PHPlib myself.
To help you on the way i suggest you look at these:

http://www.devshed.com/Server_Side/PHP/PHPFastTemplate/
http://www.phpbuilder.com/columns/david20000512.php3
http://www.phpbuilder.com/columns/sascha19990316.php3
http://www.phpbuilder.com/columns/kendall20001122.php3


--

Michel Laine


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to