Log in

View Full Version : PHP file to exe



real_estate
07-22-2006, 06:17 AM
How can i convert a php file to exe format?

Twey
07-22-2006, 10:33 PM
You can't. PHP doesn't compile down to a Windows executable format.

Why do you want to do this?

blm126
07-23-2006, 07:16 PM
You can't compile php code,but you can create a Windows executable (http://www.bambalam.se/bamcompile/).

Twey
07-23-2006, 07:43 PM
Bambalam PHP EXE Compiler/Embedder is a free command line tool to convert PHP applications to standalone Windows .exe applications. The exe files produced are totally standalone, no need for php dlls etc.
It's NOT really a compiler in the sense that it doesn't produce native machine code from PHP sourcesSo it produces a standalone Windows executable PHP interpreter with some PHP bytecode embedded?

blm126
07-23-2006, 07:51 PM
Yes exactly.It turns out you can compile PHP (http://www.roadsend.com/home/index.php?pageID=compiler) though. It's just expensive.

Twey
07-23-2006, 09:59 PM
Hm... interesting idea, but I don't really see the point.