Re: Style Options

From: Date: Fri, 09 Jun 2000 22:43:47 +0000
Subject: Re: Style Options
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-1483@lists.php.net to get a copy of this message
In article <002101bfcfcb$f6f6e6b0$65a8a8c0@faxnet.com>, dhf@myonramp.net ("Donald French") wrote: > Has anyone done any research to determine which generates the faxtest = > code: > > 1. Letting php generate all html for a page both the static and the = > dynamic sections of a page or > > 2. Using static html where it is static and using php to generate the = > dynamic sections of the page? Switching to/from PHP mode takes a couple cycles, and print() function takes a couple cycles... So it depends on how much of either you have, but anything more than a few lines of static HTML is probably faster to break out of PHP mode and keep static. I also find it easier to understand what's going on that way, but that's a religious opinion. Focussing on this issue instead of figuring out where/why your server performance is slowest and fixing that is generally a waste of time. -- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)

« previous php.general (#1483) next »