Compiled PHP


Hi group,

Is it possible to write a web app in PHP and release a compiled code to client rather than giving its source code (as common php code is) ?

Thanks.
akohanAsked:
Who is Participating?
 
eriksmtkaCommented:
yes, it is.  what you're looking for is the "bcompiler" library.  it's what we use.

you should note, though, that the documentation basically says that, given enough effort, someone can refactor your code.  however, it isn't easy.

the other option is using a PHP plugin called "Ioncube" Ioncube.  The code is run through that, and then you have to install the extension on the host server to interpret it.

0
 
Ray PaseurCommented:
No points for this, but I also vote for IonCube.  However beware - once a script is encoded you will be unable to change it, only replace it.

Keep an eye on what Facebook is doing with PHP.  Last year they were rewriting part of the engine.  You may find that they have something that will compile and create a binary.
0
 
akohanAuthor Commented:
Thank you!
0
 
akohanAuthor Commented:

Thanks also to Ray for his comment.  

Regards.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.