Re: HTML vs. PHP

From: Date: Fri, 18 Aug 2000 21:40:18 +0000
Subject: Re: HTML vs. PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-12540@lists.php.net to get a copy of this message
At 12:31 PM 8/17/00 -0300, Martin A. Marques wrote:
On Thu, 17 Aug 2000, Radu Filip wrote: One simple reason: if every page written in php include a single php file that draws every page, you can change the entire deisgn of the site by modifing a single file. Another reason: I usually create pages both in Romanian and English. Is simplier to have a page like page.php?lang=ro (or lang=en) that display the body in Romanian or English than have two pages with the same design architecture. What I really want to know is if one is more optimal then the other, in terms of memory and CPU consumption.
It's pretty much the same. You're probably best off writing HTML and using PHP code only when needed. It might be a tad-bit faster and IMO it is much nicer & more maintainable. Andi --- Andi Gutmans <andi@zend.com> http://www.zend.com/

« previous php.general (#12540) next »