SwiftlyTilting: usability, reusability

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

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

11 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)

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

Hello “Swiftly” :)
I’ve tried using phc-win to compile the php script I have, but the features I’m using were introduced in version 5.1.2
What can I do to help you or to compile my script to function properly with newer functions of PHP?

Is there anything you need that might help get an updated version out, or that I can do in the meantime? Keep up the good work!


Comment by richrumble — Friday, October 30, 2009 @ 5:30 pm

Hi Rich,

Development has been held back by the need for php_win32std.dll to be updated. I figured out how to compile without needing to use this file, but I haven’t had time to work on the code.

Comment by swiftlytilting — Monday, November 2, 2009 @ 3:28 pm

I recompiled php_win32std.dll for PHP 5.3. Here is a link: http://ramblingwood.com/files/php_win32std.dll . The DLL is 500kb because changes to the PHP API made it so that you couldn’t compile with the C++ flag WIN32_LEAN_AND_MEAN which drops many Win32 methods which is need by PHP 5.3. If you could update phc-win to work with PHP 5.3 I would be so very happy!

Comment by Alec — Saturday, November 7, 2009 @ 3:45 pm

Hi Alec

that is very cool that you compiled the 5.3 DLL.. do you have a Winbinder DLL that works with 5.3? I don’t know of any.

Comment by swiftlytilting — Sunday, November 8, 2009 @ 6:47 pm

Here is a compiled lib bundles with winbinder and winstd32 DLLs for PHP 5.2.4. I would be so grateful if you could use them to rebuild phc-win.


Comment by Victor — Saturday, December 12, 2009 @ 12:19 pm

Leave a Comment

Validate XHTML | Word Press