RE: [PHP] Static constants? Server persistent?

2002-10-05 Thread Lance Lovette
al Message- > From: Jean-Christian Imbeault [mailto:[EMAIL PROTECTED]] > Sent: Sunday, September 29, 2002 6:59 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Static constants? Server persistent? > > > This is a bit hard for me to explain but is there any way to have PHP > sto

Re: [PHP] Static constants? Server persistent?

2002-09-29 Thread John Hinton
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

Re: [PHP] Static constants? Server persistent?

2002-09-29 Thread Jean-Christian Imbeault
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

Re: [PHP] Static constants? Server persistent?

2002-09-29 Thread Mike Mannakee
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

Re: [PHP] Static constants? Server persistent?

2002-09-29 Thread Jean-Christian Imbeault
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

Re: [PHP] Static constants? Server persistent?

2002-09-29 Thread Justin French
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,

Re: [PHP] Static constants? Server persistent?

2002-09-29 Thread Jean-Christian Imbeault
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?

Re: [PHP] Static constants? Server persistent?

2002-09-29 Thread Justin French
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

Re: [PHP] Static constants? Server persistent?

2002-09-29 Thread Jean-Christian Imbeault
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

Re: [PHP] Static constants? Server persistent?

2002-09-29 Thread Justin French
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

[PHP] Static constants? Server persistent?

2002-09-29 Thread Jean-Christian Imbeault
This is a bit hard for me to explain but is there any way to have PHP store a persistent server-side constant. Something that will stay in RAM and is not dependent on client connection. For example I have this code in consts.inc file: define ("HOME_PAGE", "http://myip.com/index.html); But if