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
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,
I just noticed this post, and PWEE sounds pretty interesting.
One thing that would
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't
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
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 hosts:
Sorry if this is the wrong place to ask ... but I searched the
docs/archives and couldn't find a definite answer so I though I might
ask the developers. I did see something about PWEE but it wasn't' clear
enough.
Does using the auto_prepend config option in the php.ini file cause PHP
to
On Sun, 29 Sep 2002, Jean-Christian Imbeault wrote:
Sorry if this is the wrong place to ask ... but I searched the
docs/archives and couldn't find a definite answer so I though I might
ask the developers. I did see something about PWEE but it wasn't' clear
enough.
Does using the
[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 ...
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 http://www.php.net/
To unsubscribe, visit:
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 familiar
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
--
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
mentioning
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 Development
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:
IfModule
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
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
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) to set
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 if
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
19 matches
Mail list logo