[thelist] PHP include parsing behaviour
Eduardo Dominguez
lalo_dominguez at yahoo.com
Tue May 8 16:59:46 CDT 2001
they do get parsed everytime :(
solutions ? cache the scripts...
zend cache http://zend.com
apc cache http://apc.communityconnect.com/
bwcache http://bwcache.bware.it (?)
there are php based caches too...
greets...
----- Original Message -----
From: "Andrew Forsberg" <andrew at thepander.co.nz>
To: <thelist at lists.evolt.org>
Sent: Tuesday, May 08, 2001 4:48 PM
Subject: [thelist] PHP include parsing behaviour
Hi All
Does anyone know whether PHP parses all the routines in an entire
included file every time it loads it? Or does it just parse the
signature of all the functions in the routine, then parse the routine
when it's called?
That is, say I have (and I do), in one of my utility include files
something like this:
function whatever_blah_blah($blah, $foo, $bar)
{
.....
}
function another_function($evolt, $members, $use, $frontpage)
{
.......
}
function etc_etc($whatever)
{
.....
}
and so on.
If some pages only use some of the utility functions in this include
file, or even just one or two (and there are over twenty functions in
the include I'm concerned about), am I putting unnecessary load on
the server?
I'd like to avoid breaking up the functions because they're all
related, and the less file access the better, right?
Sorry if this is a dim question.
Andrew
--
Andrew Forsberg
http://www.thepander.co.nz/
---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt !
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
More information about the thelist
mailing list