Re: Help needed
| From: | val khokhlov | Date: | Wed, 16 Feb 2005 18:00:13 +0000 |
| Subject: | Re: Help needed | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-2016@lists.php.net to get a copy of this message | ||
Hello ram,
Tuesday, February 15, 2005, 4:05:09 PM, you wrote:
rk> I want to compile my php files.
it's not mandatory to compile php files :)
you might compile them in order to conceal sources, or make them
load faster a little bit.
if you want to use bcompiler, then (assuming you get its sources in
rk> "/home/guest/php-5.0.3/ext/bcompiler/" )
you need to:
1) cd /home/guest/php-5.0.3; ./buildconf
2) ./configure ___your_parameters_for_configure___ --enable-bcompiler
3) make
then you'll get php with enabled bcompiler
and only after that you can compile you test.php file with the
following script
<?
$f = fopen($target_name, "w");
bcompiler_write_header($f);
bcompiler_write_file($f, $source_name);
bcompiler_write_footer($f);
fclose($f);
?>
$source_name - .php file name
$target_name - bytecodes file name
--
Best regards,
val mailto:val@vk.kiev.ua