Re: PHP as an EXE
| From: | Alan Knowles | Date: | Mon, 06 May 2002 04:12:24 +0000 |
| Subject: | Re: PHP as an EXE | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-1912@lists.php.net to get a copy of this message | ||
Current status overview...
phpcompiler (which adds your code to a php.exe file), and modifies the php.exe to look at it'self for the code. - is available on the internet, but difficult to find. (you may also have to do a few 'fudges' to your code to make it work.)
plot, (the author), did say that he would be interested in developing it furthur so that it could combine the php.exe with php bytecode (similar to the idea behind java bytecode). - however, he has no real plans at present of if/when he will do it. - eg. like funding for that project would be nice :)
The Zend encoder does work (and costs), however it only produces bytecode, not .exe's etc.
Otherwise the parrot project (perl/python), looks like a plausable target to convert php code into parrot code, then compile executables (but the php bit is vapourware)
the phpmole technique:
php_gtk.exe is a small wrapper C program that starts up php with '-q' enabled. - I did a quick hack to this to enable you to hard code the name of your application into the binary (using hexedit), so if you run phpmole.exe on windows, it really just does "php -q phpmole." - bit like a glorified batch file... - but effective :)
regards
alan
MET wrote:
Is there anything in the works to have PHP capable of making compiled executables? _______________________________________________________________________ Matthew Metnetsky