SwiftlyTilting: revisionist reality

Monday, March 6, 2006

phc-win: A PHP compiler for Windows

PHC-WIN is a windows application that allows one to create EXEs from PHP code. The PHP code is first converted to PHP bytecode using bcompiler, and then embedded into an EXE using embeder. Compiling the code into bytecode has two benefits: it speeds up load times since the PHP code doesn’t have to be interpreted, and it obfuscates the code so that it cannot be easily reverse engineered.

PHC-WIN itself is written in PHP and utilizes wbObjects, my object oriented layer for WinBinder to create windows controls.

PHC-WIN Wiki page with documentation

Download:
phc-win 0.2.0 rar archive
Downloaded 483 times
phc-win 0.2.0 self extracting exe
Downloaded 559 times
For the latest version, check the phc-win category.
keywords: php to exe, php2exe


6 Comments Leave Comment

hmm it seems this version doesn’t work well with folders that contain spaces. If you have problems compiling, check to see if phc-win or the source code is in a path which contains a space

Comment by swiftlytilting — Tuesday, March 7, 2006 @ 2:49 am

Don’t work with php 5.1, and don’t work with php-gtk2.

Comment by Pub — Sunday, April 16, 2006 @ 8:44 pm

yes unfortunately only 5.0.5 and lower is supported because php_win32std.dll does not work with 5.1+ :( as for gtk2, i’ve never used it so I can’t give you any tips. it should work with any php code though

Comment by swiftlytilting — Sunday, April 16, 2006 @ 10:06 pm

unfortunately there does not seem to be any way to get gtk2 applications to work as it php-gtk2 needs 5.1.* at least.

Unfortunate, I spent some time trying to get it to work, shame I never noticed these comments.

Comment by Peter — Sunday, August 13, 2006 @ 3:03 pm

That is too bad. :( I wish the author of php_win32std.dll would update but I contacted him and he said it’s not a high priority.

Comment by swiftlytilting — Monday, August 14, 2006 @ 2:20 pm

Hm, im using the latest version of gnope based php-gtk2 and using php_win32std.dll.

Here you can get the all dlls (include php_win32std.dll) for windows for php 5.1.4 (used also by gnope)
http://de.php.net/get/pecl-5.1.4-Win32.zip/from/a/mirror

Will there be an update within the next time? It will be fine, if there is a gnope-compatible version of phc-win, because many php-gtk2 programmers under windows using this gnope build

from http://www.gnope.org/download.php
Release 1.5.1, complete Windows Installer, tested on Win XP Pro
Size: 8.8 MB :: md5sum 3e426188ff73a805bec506ba4b003148
(includes PHP 5.1.4)

Comment by ecc — Tuesday, November 14, 2006 @ 8:32 am

Leave a Comment

Validate XHTML | Word Press