It's absolutely possible, just use php-gdk, the online code is very limited.
Write desktop applications. For desktop applications with graphical interfaces, PHP may not be the best language, but if the user is very proficient in PHP and wants to use some advanced features of PHP in client applications, they can use PHP- GTK to write these programs. (Recommended learning: PHP video tutorial)
PHP-GTK was developed to prove that PHP is an effective tool that goes far beyond web applications.
This is a sub-plan of PHP, which aims to make PHP a standard programming language rather than a simple scripting language.
Use PHP-GTK to write graphical interface applications in a graphical interface system, and use PHP to write application clients. In this way, both the server side and the client side can be written using php.
What is PHP-GTK?
PHP-GTK was developed to prove that PHP is an effective tool far beyond web applications. Using PHP-GTK you can build independent GUI (graphical user interface) applications, such as mp3 players, text editors, database backends, etc.
PHP-GTK is an extension of PHP and can be downloaded from http://gtk.php.net. PHP-GTK is based on GTK, which was first used by Andrei Zmievski.
What is GTK?
GTK (GIMP Toolkit) was developed for the GNU Image Manipulation Program (GIMP for short). GTK has developed rapidly and has now become an integral part of the GNU desktop environment project (Gnome). In fact, GTK is a set of C language libraries: GTK, GDK and Glib.
The ease of use in building cross-platform applications is an important reason for the popularity of PHP-GTK. If you are a Windows programmer, don't worry, because GTK (and PHP-GTK) for Windows platforms are also available.
Basically, GTK and PHP-GTK are tools for building graphical user interface (GUI) applications using widgets;
GUI is a set of supplementary parts for applications that interact with users Widgets, whether buttons, text boxes, etc., are all components of the GUI;
The widget is a separate object that makes up the GUI. Generally speaking, the widget is a scroll bar, text box, Buttons and menus, and indeed the windows themselves, are widget objects.
The above is the detailed content of Can php write computer applications?. For more information, please follow other related articles on the PHP Chinese website!