|
Posted by Gregor on 05/30/07 15:46
"L. Berger" <straightfwd007@gmail.com> wrote in message
news:1180451838.251123.37150@d30g2000prg.googlegroups.com...
* * *
> 1. Minimize require calls. (And use require instead of include or
> include_once or require_once).
> 2. Use an accelerator, such as eAccelerator. This compiles your code
> and basically boils it down to one include in most cases.
* * *
Could you explain these for me please, if you have the time?
I can understand the obvious reasons to minimize require calls, but why do
you prefer, say, "require()" over "require_once()"? And why not use
"include()" for, say, a block of stand-alone text when you would rather see
it omitted than have the page not load?
I have never heard of an accelerator. I'm assuming it acts a bit like a css
optimizer, perhaps sort of a poor man's framework? Does eAccelerator ever
create bugs, like css optimization programs?
Navigation:
[Reply to this message]
|