Re: PHP complied code
| From: | Kevin Stone | Date: | Thu, 02 Jan 2003 21:16:15 +0000 |
| Subject: | Re: PHP complied code | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-129993@lists.php.net to get a copy of this message | ||
Actually all PHP4 code is compiled before it is executed. What the author
of that book suggests is pre-compiling a script. The difference between a
standard script and a pre-compiled script is the time it takes to parse the
code. You might pre-compile scripts that are going to see heavy use on your
server. Or you might pre-compile a very large script to avoid the inherent
latency in the interpretor as an optimization step.
The only encoder I know of is Zend Encoder ($2400) at www.zend.com.
Here's the deal though. If you don't know that you need to pre-compile then
chances are you don't have to. The benefits to the casual programmer are
negligable.
-Kevin
----- Original Message -----
From: "Manuel Ochoa" <manuel@ochoa-usa.com>
To: <php-general@lists.php.net>
Sent: Thursday, January 02, 2003 1:46 PM
Subject: [PHP] PHP complied code
>
> I recently read a book on PHP and the author breifly said that if you
compile the PHP code it would improve the performance.
>
> Is there a way to compile the code?
>