PHP-GTK Question – PHP

  php

Q(Question):

hiya guys,

With the launch of gtk2, it pulled my attention from php web apps 😀
Well i want to know if i develop some desktop, window stuff in php that is more like JAVA development, is it platform independent. Yeah i have read they claim it to be, but i couldn’t find how do i do that ?

I mean how does the runtime libraries gonna come, we know for JAVA we got JRE backing up each time a jar file is double clicked, what about php ?

Is it going to make some executable? If yes then how ?

Pleae let me know 🙂
thanks

A(Answer):

Heya, Realin.

PHP-GTK is a PHP extension that allows you to interact with GTK+ bindings.

The catch is that the machine that is running your code has to have PHP-GTK installed. But as long as you have a machine with PHP-GTK installed, it should run regardless of the platform.

A(Answer):

Heya, Realin.

PHP-GTK is a PHP extension that allows you to interact with GTK+ bindings.

The catch is that the machine that is running your code has to have PHP-GTK installed. But as long as you have a machine with PHP-GTK installed, it should run regardless of the platform.

thanks for the reply pbmods, seeen you after a long time 🙂

Well according to u, that means the person to who i am going to send myapplication.phpw file should have PHP-GTK installed on his system. If yes then the same person has to set some environment variables also ?
If yes, then who is going to do this to run my application ?
Isn’t there something as easy as to install JRE or DOTNET env.
I mean something that is compact, executable and ready to run, instead of setting env path.
And the last question, Am i getting it right that i am going to send the myapp.phpw file to the end user (EU). ?? If yes that doesn’t really makes sense .. does it ?

Thanks & Regards ..
Realin !!

A(Answer):

You could potentially bundle a PHP and GTK installation with your app, or create a wrapper application that checks to make sure that the proper dependencies are installed and downloads and installs them if not (and I wish you luck with that!).

But ultimately, since PHP code is interpreted, not compiled, the client would have to have PHP, the GTK libraries and the PHP-GTK extension installed on his machine.

PHP was never intended to be a client-side language in any sense of the word, though it is always fun to see people use a product in ways that the creators never imagined.

We may see exciting developments along this path in the future, though.

A(Answer):

You could potentially bundle a PHP and GTK installation with your app, or create a wrapper application that checks to make sure that the proper dependencies are installed and downloads and installs them if not (and I wish you luck with that!).

But ultimately, since PHP code is interpreted, not compiled, the client would have to have PHP, the GTK libraries and the PHP-GTK extension installed on his machine.

PHP was never intended to be a client-side language in any sense of the word, though it is always fun to see people use a product in ways that the creators never imagined.

We may see exciting developments along this path in the future, though.

Cool mayne, thanks a lot for ur guidance..
just the last question asking u again though,
How do i make an executable of my phpw file ?

A(Answer):

You may find WinBinder to be of some use.

Also, there is a fantastic forum thread on their support forums that covers this topic:
Compiling .phpw applications

Incidentally, though I’m not familiar with WinBinder, it sounds like it is designed to bundle PHP (and possibly GTK libraries?) into your application….

A(Answer):

You may find WinBinder to be of some use.

Also, there is a fantastic forum thread on their support forums that covers this topic:
Compiling .phpw applications

Incidentally, though I’m not familiar with WinBinder, it sounds like it is designed to bundle PHP (and possibly GTK libraries?) into your application….

hiya pbmods, thanks for ur inputs.. Was outta country for a while so couldn’t reply..

its always good to get solutions from you 🙂

LEAVE A COMMENT