Skinnable, Portable Desktop Apps In PHP
joeldg writes "With the new Zend coding contest getting underway, a lot of PHP coders are hacking out some amazing new test code. In that vein and in response to the lack of skinning with PHP-GTK apps, I just finished up writing a tutorial with source code for doing skinnable desktop applications in PHP that run on both Linux and Windows."
... leading cheerleader for in-appropriate php apps
the clock on the wall says 4 til 7
This is probably a good time to mention EncPHP, a program I wrote that encapsulates a PHP script along with most of what it needs to run inside an EXE. Both console and GUI PHP apps are supported, though for GUI apps, if you choose to embed all of GTK inside the app, it's going to be huge.
It hasn't been updated in ages, but you can check out the latest version here: EncPHP on SourceForge
The sourcecode is included... it uses a free BASIC compiler to dynamically compile a dependance-free EXE with the PHP script, PHP interpreter, and required DLLs, inside an EXE. When the EXE is run, it extracts it all and runs the PHP script with the parameters passed on the command line. There are some simple options you can add to the start of your PHP script to tell it to include other files, and if it is a console or GUI app (to show or hide a console).
What ever happened to PHP-Qt? I saw an implementation of it a few years ago, and it's since been stagnant...
Anyone know what's up with that?
Don't think that a small group of dedicated individuals can't change the world. It's the only thing that ever has.
...NOOOOOOOO!
As much as PHP might be a decent language for writing server-side web logic, PHP is Perl rewritten by people who don't grok Perl. Unfortunately, I have yet to find a webpage-embedded language that I like enough to replace PHP.
Range Voting: preference intensity matters
I added a few things, thoughts etc from people on the NYPHP list and others who have contacted me.
I added in a few base functions for doing XPM alpha-blending as well as the output from Glade to see how easy it would be to write a Glade->php-gtk parser.
As for the "perl duuudes" on here, perl is fine for what it is, I use it. However, in this particular instance perl is not an option as I work in a PHP shop and this is actually a project for my work.. On that note however, I 'have' been steadily replacing perl scripts with PHP scripts as they are superior for doing a lot of what I do and working with our established libraries which are not in perl.
And in response to the "PHP puts everything in global namespace" comment, you obviously have not used PHP in a long time. Or you didn't bother to read through the docs when you installed it.
Anyway, glad people are liking the tutorial.
anime+manga together at last.. in real time.
Tahya al-Moqawama al-Iraqiya!
Fuck the American imperialists!
Death to them all!!