|
Posted by Chris Shiflett on 08/21/05 07:47
Bawt T. Eggdrop wrote:
> im trying to change my session backend for apache from files to mysql.
> is there something php provides that allows a php script to execute
> before each page gets loaded in apache. if not i have to edit hundreds
> of php files...theres gotta be an easier way. thanks.
I may be misunderstanding your question, but if you're wanting to change
the session data store that PHP uses, you can use
session_set_save_handler() and write your own functions.
Apache handles incoming HTTP requests, so it doesn't make sense for a
PHP script to execute before it has been requested.
Hope that helps.
Chris
--
Chris Shiflett
Brain Bulb, The PHP Consultancy
http://brainbulb.com/
Navigation:
[Reply to this message]
|