31 December 2008

PHP bcompiler extension

Install necessary prerequisites and PECL extension (replace apt-get with package manager - on suse/fedora use YUM, on gentoo use emerge)

sudo apt-get install php5-dev
sudo apt-get install libbz2-dev
pecl install bcompiler


Add “extension=bcompiler.so” to /etc/php5/apache2/php.ini to activate the extension.

This is how to encode .php files:

<?php
$fh = fopen(“example.phb”, “w”);
bcompiler_write_header($fh);
bcompiler_write_file($fh, “example.php”);
bcompiler_write_footer($fh);
fclose($fh);
?>


Then in your code, update the include to include the .phb file instead.

6 comments:

riya said...

I really like your blog. You make it interesting to read and entertaining at the same time. I cant wait to read more from you.
Data Science Training in Chennai
Data Science training in kalyan nagar
Data science training in Bangalore
Data Science training in marathahalli
Data Science interview questions and answers
Data science training in bangalore

Anu said...


Thanks for sharing your valuable post and keep doing Looking towards more devops training in chennai | devops training in anna nagar | devops training in omr | devops training in porur | devops training in tambaram | devops training in velachery

Revathi said...

Wonderful bloggers like yourself who would positively reply encouraged me to be more open and engaging in commenting.So know it's helpful.thanks !!

android training in chennai

android online training in chennai

android training in bangalore

android training in hyderabad

android Training in coimbatore

android training

android online training

Reshma said...


Such a great blog.Thanks for sharing.........
Web Designing Course in bangalore
Web Development courses in bangalore

David Fincher said...

Mindblowing blog very useful thanks
Spoken English Classes in OMR
Spoken English Classes in Chennai

Pavithra Devi said...

Such a good post .thanks for sharing
Salesforce Training in T Nagar
Salesforce Training in Chennai