* Thus wrote Sebastian: > i have this small function for a template system (if you want to call it > that ;) > > my idea was having something simple to separate html code from php and i > think using something like smarty is too big for me and i really dont have > time to learn to use it. so i have this code here: > > http://www.cstrike-planet.com/function.phps > > i call this function which reads .tpl files which contain html and some > $vars, then in my pages use something like: > > eval('echo("' . template('home_index') . '");'); I don't quite understand the purpose of this when either an include() or readfile() will do the job, and not to mention much faster and less memory intensive. Curt -- Quoth the Raven, "Nevermore." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php