Re: [fw-general] PHP/Apache context

2008-11-07 Thread Matthew Weier O'Phinney
-- stevep98 <[EMAIL PROTECTED]> wrote (on Friday, 07 November 2008, 06:27 PM -0800): > Thanks for your replies, and you're right that I come from a java background. > > The profiler shows than another source of overhead for me seems to be > Zend_Load. Loading all those helper classes takes about 3

Re: [fw-general] PHP/Apache context

2008-11-07 Thread Matthew Ratzloff
> > The profiler shows than another source of overhead for me seems to be > Zend_Load. Loading all those helper classes takes about 30% of my total > request time. I'm guessing the overhead is from actually doing the parsing > of those PHP files. > It's likely that you're not doing everything you

Re: [fw-general] PHP/Apache context

2008-11-07 Thread stevep98
Thanks for your replies, and you're right that I come from a java background. The profiler shows than another source of overhead for me seems to be Zend_Load. Loading all those helper classes takes about 30% of my total request time. I'm guessing the overhead is from actually doing the parsing of

Re: [fw-general] PHP/Apache context

2008-11-07 Thread Matthew Weier O'Phinney
-- stevep98 <[EMAIL PROTECTED]> wrote (on Friday, 07 November 2008, 02:49 PM -0800): > Here are my main questions: > > a) Is there any way to store a variable (I'm thinking things like > database handles, config objects) such that it can be retrieved in the > same apache process when it is process

Re: [fw-general] PHP/Apache context

2008-11-07 Thread Matthew Ratzloff
Your understanding is correct. I'm guessing you come from a Java background, or something similar. PHP has no application server concept. The long and short is that there is nothing like what you want, but daemons like memcached can approximate this effect. Serialize data to memory, unserialize

[fw-general] PHP/Apache context

2008-11-07 Thread stevep98
Hi. I'm a newbie at both PHP and Zend. I've just been working on these for the past couple of months. My goal here is to ensure that my understanding of the execution model of PHP under apache is correct, and hopefully get some pointers on speeding things up. Firebug is showing that it takes 300