RE: [PHP-DEV] auto_prepend/append: does the PHP engine cache the

2002-10-07 Thread Lance Lovette
eone else can point me in a direction. Lance > -Original Message- > From: Colin Viebrock [mailto:[EMAIL PROTECTED]] > Sent: Monday, October 07, 2002 11:12 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP-DEV] auto_prepend/append: does the PHP engine cache > the > > > Lance, &

Re: [PHP-DEV] auto_prepend/append: does the PHP engine cache the

2002-10-07 Thread Colin Viebrock
Lance, I just noticed this post, and PWEE sounds pretty interesting. One thing that would definitly make me consider using it in a production environment would be the ability to change configuration based on the name of the vhost being accessed. For example, we've got several sites all running

RE: [PHP-DEV] auto_prepend/append: does the PHP engine cache the

2002-10-05 Thread Lance Lovette
> I find myself including() the same constants.inc file in all my scripts, > is there a way to declare static constants that remain even when a > script exits? (I am using PHP as an Apache module). I wrote the PWEE PHP extension to solve this exact problem. http://pwee.sourceforge.net I haven

Re: [PHP-DEV] auto_prepend/append: does the PHP engine cache the

2002-09-30 Thread Sander Steffann
Hi, > > What about setting server variables? You can set them once, they stay in > > memory and your scripts can read them. Just an idea... > > Hum ... very interesting! I have no idea how to set Apache server vars > but I'll definitely look into it! We do the following in our Apache virtual hos

Re: [PHP-DEV] auto_prepend/append: does the PHP engine cache the

2002-09-30 Thread Wez Furlong
On 01/01/70, "George Schlossnagle" <[EMAIL PROTECTED]> wrote: > Just as a note about all this: if you have a deep 'standard' include > tree (same 30-40 files), there is a decent amount of overhead just from > parsing all the include files, even with inexpensive code. In which case you should c

Re: [PHP-DEV] auto_prepend/append: does the PHP engine cache the

2002-09-29 Thread George Schlossnagle
Just as a note about all this: if you have a deep 'standard' include tree (same 30-40 files), there is a decent amount of overhead just from parsing all the include files, even with inexpensive code. > Your OS should do a reasonable job (or a really good job if it's Unix > based) > at caching

Re: [PHP-DEV] auto_prepend/append: does the PHP engine cache the

2002-09-29 Thread Rasmus Lerdorf
> I tried using php_value but it seems that it can only be used (in the > Apache httpd.conf file) to set *real* php config variables. Correct. Why don't you write yourself a little trivial PHP extension that sets stuff in the MINIT hook? With the ext/ext_skel tool it is really very easy to do i

Re: [PHP-DEV] auto_prepend/append: does the PHP engine cache the

2002-09-29 Thread Zeev Suraski
At 17:11 29/09/2002, Jean-Christian Imbeault wrote: >Pierre-Alain Joye wrote: >> >>If you need only >>constants/variable, use php_value in your php.ini/httpd.conf, or set an >>environment variable. > >I tried using php_value but it seems that it can only be used (in the >Apache httpd.conf file) t

Re: [PHP-DEV] auto_prepend/append: does the PHP engine cache the

2002-09-29 Thread Wez Furlong
BTW: if you keep your various HTML chunks in their own separate files, using readfile() to output them will optimially make use of your OS ability to cache files. In PHP 4.3 (due for release fairly soon), there is also file_get_contents() which uses the same mechanism but returns the contents as

Re: [PHP-DEV] auto_prepend/append: does the PHP engine cache the

2002-09-29 Thread Wez Furlong
On 09/29/02, "Jean-Christian Imbeault" <[EMAIL PROTECTED]> wrote: > Shucks ... I take it that you are familiar enough with the source so > that I can take this to be a pretty definitive answer? Yep. > If so ... maybe you can suggest something to me then? > > I find myself including() the same

Re: [PHP-DEV] auto_prepend/append: does the PHP engine cache the

2002-09-29 Thread Jean-Christian Imbeault
Pierre-Alain Joye wrote: > > If you need only > constants/variable, use php_value in your php.ini/httpd.conf, or set an > environment variable. I tried using php_value but it seems that it can only be used (in the Apache httpd.conf file) to set *real* php config variables. I tried: php_val

Re: [PHP-DEV] auto_prepend/append: does the PHP engine cache the

2002-09-29 Thread Jean-Christian Imbeault
Christoph Grottolo wrote: > > What about setting server variables? You can set them once, they stay in > memory and your scripts can read them. Just an idea... Tried it and it works. Now I just need to find out what the max size on an Apache environment variable. Thanks! Jc -- PHP Developme

Re: [PHP-DEV] auto_prepend/append: does the PHP engine cache the

2002-09-29 Thread Jean-Christian Imbeault
Pierre-Alain Joye wrote: > > If you need more than configuration stuffs (means constants or > variables only without any calculations/tests), using bytecodes caches > like zend, phppa, or others bytecodes cache tools. I've looked into zend and it sounds great, just not free. Thanks for mentioni

Re: [PHP-DEV] auto_prepend/append: does the PHP engine cache the

2002-09-29 Thread Jean-Christian Imbeault
Christoph Grottolo wrote: > > What about setting server variables? You can set them once, they stay in > memory and your scripts can read them. Just an idea... Hum ... very interesting! I have no idea how to set Apache server vars but I'll definitely look into it! Thanks, great tip! Jc --

Re: [PHP-DEV] auto_prepend/append: does the PHP engine cache the

2002-09-29 Thread Pierre-Alain Joye
On Sun, 29 Sep 2002 21:32:04 +0900 Jean-Christian Imbeault <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > > > It would indeed more efficient, but PHP reparses and executes the > > auto_prepend/auto_append files every time a script is started. > > Shucks ... I take it that you are fa

Re: [PHP-DEV] auto_prepend/append: does the PHP engine cache the

2002-09-29 Thread Christoph Grottolo
> If so ... maybe you can suggest something to me then? What about setting server variables? You can set them once, they stay in memory and your scripts can read them. Just an idea... Christoph -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/un

Re: [PHP-DEV] auto_prepend/append: does the PHP engine cache the

2002-09-29 Thread Jean-Christian Imbeault
[EMAIL PROTECTED] wrote: > > It would indeed more efficient, but PHP reparses and executes the > auto_prepend/auto_append files every time a script is started. Shucks ... I take it that you are familiar enough with the source so that I can take this to be a pretty definitive answer? If so ...