473,320 Members | 1,858 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

PHP-GTK Question

realin
254 100+
hiya guys,

With the launch of gtk2, it pulled my attention from php web apps :D
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
May 31 '08 #1
6 1306
pbmods
5,821 Expert 4TB
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.
Jun 1 '08 #2
realin
254 100+
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 !!
Jun 1 '08 #3
pbmods
5,821 Expert 4TB
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.
Jun 1 '08 #4
realin
254 100+
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 ?
Jun 1 '08 #5
pbmods
5,821 Expert 4TB
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....
Jun 1 '08 #6
realin
254 100+
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 :)
Jun 13 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: lawrence | last post by:
I haven't been able to reach www.php.net for days. Most of the rest of the web is working for me, though I've bad trouble reaching any English sites. Anyone else having trouble?
9
by: Bartosz Wegrzyn | last post by:
I need help with sessions. I createt set of web site for nav with authorization. first I go into main.php which looks like this: <?php //common functions include_once '../login/common.php';...
4
by: Japhy | last post by:
Hello, I'm am pulling data from a mysql db and want to use the data to populate a <ul. Here are relavent parts of my code : $wohdate = mysql_result($wohRS,$wohndx,woh_date); $woh_display...
3
by: Chris Paul | last post by:
I'm having trouble with PHP & PostgreSQL/OpenLDAP/Apache on Windows. I've set this up countless times on BSD (piece of cake) but I'm trying to do this on Windows now so that my developer can work...
59
by: Lennart Björk | last post by:
Hi All, I have a tiny program: <!doctype HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>MyTitle</title> <meta...
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
1
by: ansc1 | last post by:
Hello, I'm new to using php coding. I need help with the following: 1. There is a submit button on the form and is saves information to my database. After clicking on "Save Measurement" it...
0
by: tsivaraman | last post by:
I am trying to build php-5.2.1 in RedHat Linux 9. I have installed libxml2-2.6.11,mysql-5.0.33,httpd-2.2.4(apache) successfully.When i do 'make' from the php directory,i get the following...
0
by: Benjamin Grieshaber | last post by:
Hi, I´m on SuSE 9.3 with xmlrpc-c and xmlrpc-c-devel installed (ver. 0.9.10) I tried to compile php with xmlrpc support and got the following errors: ...
4
by: mechphisto | last post by:
I'm working on a friend's box, Fedora Core 6. It has PHP 5.1.6. I need to install mcrypt into it, and the only way I can find to do it is from source then recompile PHP. So I did all that, and got...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.