Re: [PHP3] Suggestions for improvement From: Zeev Suraski (bourbon <email protected>)
Date: 09/30/98

At 15:18 30/09/98 -0500, Andrey Zmievski wrote:
>[long discussion on encrypting scripts]
>
>I had an idea for this that could solve a couple of problems. What if
>when the php script is first accessed it gets parsed and compiled into a
>sort of intermediate P-code and that code is what Apache module
>executes. Then for each access it checks to see if the compiled file
>exists. If no, then it checks the timestamp on the source and if the
>timestamp on source file is newer than the one on the compiled file, it
>recompiles it and then executes it. If it does exist, then it just
>executes the compiled file. This would cut out the parsing step except
>for when the file changes, and it would also prevent people from looking
>at the source code of the script since you can just distribute the
>compiled file with your applications.

That's great, only it happens to mean rewriting all of the core of PHP.
The timestamp and just in time compiling are the trivial parts here.
This might happen in PHP 4.x, but then again, as things look now, PHP 4.x
isn't likely to happen within a foreseeable time range, if at all.

Zeev

--
Zeev Suraski   <zeev <email protected>>
For a PGP public key, finger bourbon <email protected>

-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3