Okay I figured it out. there is a open source program called phc-win. It supports php 5.3.1, compiles scripts to byte code (obfuscation!) and is simple to use (It even has a gui).
It needs a php-embed.ini and whatever DLL's you use, but it just works.
Thanks for all the answers everyone!
phc-win 0.3.1 (c) 2009 Andrew
Fitzgerald -
contact@swiftlytilting.com PHP
Version: 5.3.1
To compile a single file:
- Choose 'Compile single file' from the File menu.
- Then select the file to compile.
To build an EXE containing all files in a directory and all sub
directories:
- Choose 'Compile directory' from the File menu.
- Select the project folder.
- Select the main program file.
- phc-win will then recursively scan the specificed directory.
- All files with 'php' anywhere in the extension will be compiled into
.phb files.
These .phb files, along with all files in the directory tree will be
added to the project EXE.
Once the EXE has been created, you will be asked about the EXE type:
- CONSOLE (displays DOS box)
- WINDOWS (no DOS box).
Place the EXE in the same directory with the required DLL file(s) and
php-embed.ini file if needed.