caching variables and preloading functions

From: Date: Sun, 25 May 2003 23:04:50 +0000
Subject: caching variables and preloading functions
Groups: php.general 
Request: Send a blank email to php-general+get-148931@lists.php.net to get a copy of this message
Hi, I am looking for a way to do the following with PHP on Apache. 1) I have a list of functions that I would like loaded into memory when the Apache server starts so that other .PHPs can call these functions at any time. Somewhat of a way to expand the API set for PHP. i.e., Say I have a file named "init.php" which has many functions defined. When the Apache server loads, I want this file to be sourced so that these functions are visible to all other phps. 2) I have several variables, that I want to be cached at server init time. These variables are global variables and live until the server is restarted and can be accessed by any .phps. Are there any ways to do these? thanks, sunil.

« previous php.general (#148931) next »