Solved

can i make window application in PHP ??

Posted on 2011-02-25
4
459 Views
Last Modified: 2012-05-11
i want to know that can i make window application in PHP ??
(window application that run under windows xp and it will be executable file (*.exe))

give me some suggestions ....
0
Comment
Question by:Parth48
  • 2
4 Comments
 
LVL 34

Expert Comment

by:Beverley Portlock
ID: 34978363
The quick answer is "no"

PHP requires Apache or IIS to support it by invoking the PHP engine. This can be also be dome using PHP's CLI feature but anyway you stack it, PHP is a server-side scripting language and has NO facilities for interacting with screens or GUI clients. That's why you have javascript, HTML and flash.
0
 
LVL 35

Accepted Solution

by:
torimar earned 500 total points
ID: 34978532
In theory, you can indeed make Windows GUI applications with PHP.

The windows would be created by the GTK+ framework and run natively on the Linux Gnome desktop. But GTK+ can also be installed and run on Windows and Mac OS. It is already used a lot for Linux ports to Windows, like in Gimp, for instance.

In order to write GTK based programs with PHP you would need PHP-GTK installed, next to PHP and GTK:
http://gtk.php.net/
http://en.wikipedia.org/wiki/PHP-GTK
http://en.wikibooks.org/wiki/PHP_Programming/CLI/PHP-GTK

But as you can see, there is some fiddling involved. If your question is aiming at finding out which programming tool (PHP or C#.net - see your other question) is the more all-around one, it does not help much.
PHP is a perfect web programming language, it is free and cross-platform.
C# is an easy to use GUI programming tool which may also be used for web developing (if you don't mind running IIS instead of Apache), it is not really cross-platform and it is only free in a reduced version.

Programming for the web and for a windowed desktop are two different things: you will not find the one tool that does both things equally well. On the long run, an ambitioned programmer has to learn more than one language.
0
 
LVL 35

Expert Comment

by:torimar
ID: 34978560
Or consider trying Java.
0
 

Expert Comment

by:vukko
ID: 34986780
There is a PHP extension called WinBinder[1] that allows one to build native Windows applications.

[1] http://winbinder.org/
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
object oriented programming comparison 5 55
Php pie charts 3 26
highcharts wont fix inside a bootstrap modal window 6 30
Problem sending file attachments 8 23
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now