One large PHP block is more efficient than multiple small blocks of 
php.

It's a tradeoff of "multiple invocations of the parser" versus having
the parse run through (and ignore) normal text.  We have run tests
inhouse that validate the performance difference is fairly small, but 
it does exist.  This was about two years ago, though, so perhaps
the engine is now a one-time invocation and my test is invalid.

-Mike

----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 24, 2002 8:00 PM
Subject: Re: [PHP-DB] what the heck? (elementary question)


> Keep with Christophers original statement.
> 
> It is more efficient to not have large echo values.
> 
> gl -- Seth
> 
> [EMAIL PROTECTED] wrote:
> 
> > ----- Original Message ----- 
> > From: "Cosby, Christopher" <[EMAIL PROTECTED]>
> > 
> >>I don't want to start a tangent here, but the most accepted way for
> >>generating HTML with PHP is to NOT generate HTML with PHP.  Thus, the
> >>original code should be written like this:
> >>
> > 
> > Huh?  ".. most accepted way for generating ...is NOT generate.."?
> > Brain fart?  =)
> > 
> > I will regularly use large "echo" style statements to generate HTML, especially
> > <SELECT> tags and result tables.
> > 
> > 
> >>As far as the POST/GET question, you technically can use POST and GET
> >>methods simultaneously, but it's nasty.  For best results, stay away from
> >>the register_globals functionality and use $HTTP_POST_VARS[] and
> >>$HTTP_GET_VARS[] instead.
> >>
> > 
> > Both of which are deprecated.  =(  _GET _POST are the new ones.
> > 
> > POST will allow larger form submits as well, like file uploads.  GET are for 
> > smaller and faster data sets.
> > 
> > 
> >>Go to WeSellBooksByTheMillions and buy a good PHP book for reference.  They
> >>have lots of basics like this in them.  I prefer most anything from Wrox
> >>Press (http://www.wrox.com/)
> >>
> > 
> > www.php.net
> > www.phpbuilder.com
> > 
> > RIP Computer Literacy bookstores after the Barnes and Noble acquisition.
> > 
> > -Mike
> > 
> > 
> > 
> 
> 
> -- 
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to