Re: Optimization of PHP Code

From: Date: Fri, 18 Jul 2008 17:32:48 +0000
Subject: Re: Optimization of PHP Code
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-277049@lists.php.net to get a copy of this message
On Friday 18 July 2008 18:43:43 Robert Cummings wrote: > On Fri, 2008-07-18 at 16:47 +0300, Sancar Saran wrote: > > Do not use, template system, use inline php code for templates. > > Oh dear... you must subscribe to FUD 101. > > Cheers, > Rob. > -- > http://www.interjinn.com > Application and Templating Framework for PHP First of all, please remember php is template language for html. And template.php <div><?=$template['foo']?></div> page.php <?php $template['foo']= 'bar'; include('teplate.php'); ?> we can use this directly as template and if we got opcode cache (like APC), we can store entire template file in the memory, no parsing overhead, no function call, absolute noting, direct output from memory. Did you got anything better ? Regards Sancar

« previous php.general (#277049) next »