I wrote the PWEE PHP extension to solve this exact problem.
http://pwee.sourceforge.net
It's great for constants but it's true power comes from "executor
persistent" variables. I haven't updated the web site but it does work with
PHP 4.2.3.
Lance
> -Original Message-
> From: Jean-Chris
Jean-Christian Imbeault wrote:
> Mike Mannakee wrote:
>
>>
>> Just out of curiosity, what problem are you trying to solve?
>> Including a
>> file is so easy and takes so little time I wonder how this could be a
>> problem.
>
>
> Good question, glad you asked.
>
> I have a header on all my pages
Mike Mannakee wrote:
>
> Just out of curiosity, what problem are you trying to solve? Including a
> file is so easy and takes so little time I wonder how this could be a
> problem.
Good question, glad you asked.
I have a header on all my pages. The header is HTML and contains images.
So of
Just out of curiosity, what problem are you trying to solve? Including a
file is so easy and takes so little time I wonder how this could be a
problem. I've worked for a web site that was getting millions of page views
per day (Billions per month) running php/mysql and the issue never came up.
A
Justin French wrote:
>
> I'm merely guessing.
Ok. Thanks for the guess. I'll post on the dev list and see if I can get
a definitive answer.
Jc
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
on 29/09/02 10:09 PM, Jean-Christian Imbeault ([EMAIL PROTECTED])
wrote:
> Just asking, do you know the source well enough to say with *certainty*
> that the auto prepend file is not kept in memory?
I'm merely guessing.
Justin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Justin French wrote:
>
> You're right... it's an include... THEN the vars will be in memory...
>
> This is the best you can do, AFAIK, without hacking the source of PHP :)
Just asking, do you know the source well enough to say with *certainty*
that the auto prepend file is not kept in memory?
on 29/09/02 9:36 PM, Jean-Christian Imbeault ([EMAIL PROTECTED])
wrote:
> Justin French wrote:
>>
>> There is a directive in php.ini which allows a file to be included on EVERY
>> page that php parses... one at the very start, and one at the very end of
>> the script
>>
>> I'm pretty sure this
Justin French wrote:
>
> There is a directive in php.ini which allows a file to be included on EVERY
> page that php parses... one at the very start, and one at the very end of
> the script
>
> I'm pretty sure this is server-wide, but maybe it could be site- or
> directory-wide by setting the var
There is a directive in php.ini which allows a file to be included on EVERY
page that php parses... one at the very start, and one at the very end of
the script.
So in theory, you could include consts.inc as a always-include file at the
top of every script, by setting the right directive in php.i
10 matches
Mail list logo