SwiftlyTilting: usability, reusability

Sunday, March 27, 2005

phpABC 1.32

Fixes some minor problems with IE and stylesheets.

phpABC 1.32
For users of phpABC 1.2 and lower. Unpack phpABC 1.32 into a new directory.

phpABC 1.32 upgrade
For users of phpABC 1.3 and up . Unpack in your existing phpABC folder.

Saturday, March 26, 2005

phpABC 1.31

This update adds the message field to the details screen.

phpABC 1.31phpABC 1.31
For users of phpABC 1.2 and lower. Unpack phpABC 1.31 into a new directory.

phpABC 1.31 upgrade
For users of phpABC 1.3 . Unpack in your existing phpABC 1.3 folder.

Thursday, March 24, 2005

phpABC 1.3 for ABC v3.0

A new version of ABC came out the other day, and it appears the web service got a few more information fields as well as the ability to stop torrents in addition to pausing them. There was also some renaming which broke existing versions of phpABC, so a new release has been created. It works with both PHP4 and 5. You’ll want to install it in a new folder.

Download phpABC 1.3

Update: This old version gets a lot more downloads than other outdated versions; I suspect it is because the blog entry has ABC 3.0 in the name. In case you have arrived here via search engine, phpABC is at version 2.1 as of October 2005 . Find out more at the phpABC homepage.

Wednesday, March 23, 2005

PHC update

Well it looks like there was a major problem with the first release of PHC; it only worked correctly in Windows 98! I’ve fixed it to work correctly in WinXP, and also streamlined the console/window program type selection.

PHC-SDK v0.11

[UPDATE: PHC has been obsoleted by phc-win]

Monday, March 21, 2005

PHC - A PHP to EXE compiler

UPDATE: PHC has been obsoleted by phc-win

Since PHP is so powerful, it is natural one would like to develope Windows applications with it. GUI extensions such as PHP-GTK and Winbinder allow users of the PHP command line interface to display GUI widgets in Windows, but the problems of distribution and code exposure still remain. The PHP command line interpreter must be included in any distribution, and the code is left as a text file.

There are a few open source PHP to EXE “compilers” out there, such as PriadoBlender and Embeder that utilize the PHP SAPI to include PHP code in executable files, but most still leave the PHP code plain or obfuscated in such a way that it is accessible to anyone who has a few minutes. PriadoBlender includes you code in an encrypted file, but it’s not much different than running the command line interpreter as the decryption code is exposed as plain text PHP inside the executable. I wanted to find something that would not allow recreation of the exact code. There are a few commercial applications out there that will do this, but they are ridiculously expensive, and inaccessible to the open source community.

In my search for a more elegant solution, I saw a few mentions of the bcompiler extension for PHP that seemed to do everything I wanted; it would join the code and the EXE file, and the code would be converted into PHP byte code, making it much harder to view and reverse engineer. The need for the PHP runtime DLL was still present, but that seems to be true of every PHP compiler, and is akin to the runtime libraries needed for Visual Basic applications.

The only problem was, you needed MS Visual Studio to compile two essential files, and only one was easily accessible. There isn’t much information on bcompiler, but eventually I found this article that mentioned the only known existing copy of the file I was looking for could be found packaged with another program by the author of bcompiler. Even when I did find the two essential files, I found they didn’t work with my PHP runtime, and had to use the one included in the above mentioned package.

Considering how useful bcompiler is, it’s a shame that it is so hard to obtain all of the components needed to produce usable EXEs. So now that I’ve collected all of the needed files, I’ve compiled the compiler script into a stand alone EXE. I present it as PHC, a PHP compiler. It is included in the PHC-SDK, which also includes the full source of PHC as well as a few simple examples to get you started, including two utilizing Winbinder to produce GUI widgets

Download the PHC-SDK with PHC v0.11 (updated from 0.1 because it seemed many people were downloading 0.1 which doesnt work in WinXP)

UPDATE: PHC has been obsoleted by phc-win

Friday, March 11, 2005

Death to Spam Bots!!!

Dude what the hell is wrong with these people? None of their posts get on my blog and most of the links they are promoting don’t even exist. Call off the bots!

Validate XHTML | Word Press