[ic] PHP Pages In Memory

Eric Tully interchange-users@icdevgroup.org
Fri Aug 23 09:55:01 2002


Hi Victor,

    As you know, PHP is stateless... so storing something in RAM isn't
really meaningful unless you're talking about the web server somehow
loading in a value that it makes persistent across all PHP parsing
sessions.  [If that's what you're looking for, I have no idea how to do it
- if it's even possible.]

    You probably know about the include function, yes?


include("top.html");
include("/usr/local/web-sites/path/top.html");


    Other than that, I'm not aware of any way in PHP to make a variable
have (or act like it has) a persistent value - but I'm only an average PHP
programmer.


Good luck,

- Eric








At 08:08 AM 8/23/02 -0400, you wrote:
>I'm sorry to bring this up but most PHP programmers I talk to do not 
>know what Interchange is. But I know in the past there are a number 
>of php programmers on the list.
>
>In interchange you can assign pages/content to variables.. like.
>
>ConfigDir cachedfiles
>Variable      TOP   < top.html
>
>calling it on any page with a __TOP__ etc (yeah I know basic stuff).
>Each restart of Interchange the information is updated etc.
>
>What I want to know is, how do you do this in PHP. I want to mimic 
>what Interchange does. Take a page and store it in ram and call it in 
>a page.
>
>Since it's not interchange related, feel free to email me off the list.
>
>Ven
>_______________________________________________
>interchange-users mailing list
>interchange-users@icdevgroup.org
>http://www.icdevgroup.org/mailman/listinfo/interchange-users
>