Joe Harman wrote:

I was curious if anyone out there has some pros and cons to storing a
website template that is extracted from a mysql db and stored in a
session... is this an efficient way to do it?

also... does anyone know what the size limitations for a session would
be?

There's no practical limit on the size of sessions, but they are not the place for template files. Neither are databases. Use the file system for files ;) and include() or fopen() the templates, etc. Use Smarty or a similar system if you want caching.


--
---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to