Re: compiling into native php?

From: Date: Mon, 04 Feb 2002 19:52:34 +0000
Subject: Re: compiling into native php?
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2642@lists.php.net to get a copy of this message
Thanks for the immediate answer! Monte Ohrt wrote:
This thought has been pondered before but it didn't seem too worthwhile, at least not in Smarty's current form. This would require an entire rewrite and rethink of how the template engine works. You're saying that
the compiled templates should be "stand alone", and executable directly instead of through Smarty, yes? After starting to piece this idea
Yepp. Anyway - I'd seriously consider it as long as code-caches are not boundled with PHP. One of the largest problems might be the installed user base and the API compatibility. So in the end:
together, it seems that in the end we aren't gaining much more footage than with what we have now.
you might be right. I know about that error-handler trick:
Another addition to this idea would be help from Apache, so if you call a URL that doesn't exist, the file gets created and executed instead of a "file not found" error. THen the next hit to that URL doesn't incurr any overhead, it just executes.
This is generally speaking some kind of caching. You're turning a dynamic page into a static html page. How to turn dynamic pages into static ones without the risk of stale data is a thrilling question. If any ouf you has some input for me how to do this, please feel free to send me links and hints. I'm currently working on this issue. Ulf -- Jobgesuch: Anwendungsentwicklung, Schwerpunkt PHP in HH Berufserfahrung, Kongressannahmen... http://www.ulf-wendel.de

« previous php.smarty.general (#2642) next »