RE: [PHP] Persistent values between executions
The most efficient way to solve your problem is with a PHP extension I developed. It handles constants and provides a type of persistent variable too. It has been immensely useful for my projects. http://pwee.sourceforge.net/ Lance -Original Message- From: Mike Mannakee [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 11:30 AM To: [EMAIL PROTECTED] Subject: [PHP] Persistent values between executions I have some sets of values that I have stored in several tables in a mySQL database. These don't often change, but are referenced on every single page view. While each call is quick, as a gross the load on the server is too high. I would like to know if there is a way to have these sets of values remain persistent in the server's memory between calls from browsers, like environment variables, to reduce the back and forth calls to mySQL. As the data from the calls are almost always the same, it would seem easier this way. Any thoughts? Comments? RTFM suggestions? Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Persistent values between executions
I have some sets of values that I have stored in several tables in a mySQL database. These don't often change, but are referenced on every single page view. While each call is quick, as a gross the load on the server is too high. I would like to know if there is a way to have these sets of values remain persistent in the server's memory between calls from browsers, like environment variables, to reduce the back and forth calls to mySQL. As the data from the calls are almost always the same, it would seem easier this way. Any thoughts? Comments? RTFM suggestions? Mike Use a 404 handler to build static html pages from the database. To refresh the content just delete the static content - this could be done automatically at predetermined intervals using cron or similar. FFT Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Persistent values between executions
Thanks, but what I need are static values accessible in the script, without having to fetch them from the database every single page view. They do occassionally change, but in the main they're fairly static. Mike Rich Gray [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have some sets of values that I have stored in several tables in a mySQL database. These don't often change, but are referenced on every single page view. While each call is quick, as a gross the load on the server is too high. I would like to know if there is a way to have these sets of values remain persistent in the server's memory between calls from browsers, like environment variables, to reduce the back and forth calls to mySQL. As the data from the calls are almost always the same, it would seem easier this way. Any thoughts? Comments? RTFM suggestions? Mike Use a 404 handler to build static html pages from the database. To refresh the content just delete the static content - this could be done automatically at predetermined intervals using cron or similar. FFT Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php