tags:

views:

106

answers:

4

Is it possible to convert PHP to binary mode (compile) and run it in all standard web servers?

+2  A: 

There are various PHP accelerators that cache the compiled byte code the interpreter produces. Not sure if they will run without the source still on the server though - I've never tried!

Rich Bradshaw
+1  A: 

One Facebook developer is working on a compiled form called "Hyper-PHP", and it's not even clear if that will be an open system once complete, but no solution exists yet.

Matchu
+1  A: 

PHP Will never be a compiled Language. It will stay as an Interpreted Language. @Matchu Facebook is just Promoting their site, so this is just an Promotion action of Facebook

streetparade
Huh? Of course Facebook is going to brag about it. Are you saying that they *aren't* working on the ability to compile PHP scripts?
Matchu
+1  A: 

There is a number of tools that will convert your php source to bytecode and allow you to protect your source code. Some of the more popular ones are Zend Guard by Zend and Ion Cube encoder. You will still need their respective loaders installed on the target server for them to function.

code_burgar