Is it possible to convert PHP to binary mode (compile) and run it in all standard web servers?
5
-
1What's a "standard web server" ?OcuS– OcuS2010-01-24 19:04:25 +00:00Commented Jan 24, 2010 at 19:04
-
Would this be to (1) try and obfuscate your code to keep it secret, or (2) or to run it on webservers without PHP? I'm guessing (1)John Carter– John Carter2010-01-24 19:04:31 +00:00Commented Jan 24, 2010 at 19:04
-
Assume that it should run on a typical shared hosting plane where you don't have root access, and have to use Apache or IIS.Rich Bradshaw– Rich Bradshaw2010-01-24 19:05:07 +00:00Commented Jan 24, 2010 at 19:05
-
1And what exactly is "binary mode (compile)"? byte code or machine code?Michael Borgwardt– Michael Borgwardt2010-01-24 19:07:17 +00:00Commented Jan 24, 2010 at 19:07
-
Ah, now I get it. You want to compile your PHP code. I thought you want to compile PHP itself (i.e. the PHP interpreter).Gumbo– Gumbo2010-01-24 19:07:24 +00:00Commented Jan 24, 2010 at 19:07
Add a comment
|
4 Answers
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!
Comments
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.
Comments
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
1 Comment
Matchu
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?