了解一下php-gtk的基本概念

PHP-GTK是什么?
php-gtk例子
PHP-GTK是为GTK+实现语言绑定的PHP编程语言的扩展。它为GTK+类和函数提供了面向对象的接口,极大地简化了编写客户端跨平台GUI应用程序的过程。
历史
PHP-GTK于2001年3月由安德烈·兹米埃夫斯基(Andrei Zmievski)创建,他在美国生活和工作。以及许多项目在自由软件,也从最初的动机有点奇怪,“我这样做是因为我想看看它是可能的”在作者的话启发了另一个现有项目,PyGTK的(语言与Python GTK)之间的联系。Andrei Zmievski于2002年访问了巴西,在第三届国际自由软件论坛上发表了一些演讲。
PHP-GTK是一种“语言绑定”(它是两种现有语言、PHP语言和GTK库之间的链接)。PHP- gtk是PHP本身,具有更多的特性。PHP- gtk是PHP语言的第一个扩展,它允许您使用GUI(图形用户界面)编写客户端应用程序。它的一部分是为了证明PHP是一门语言,并且充满了伟大的目的。PHP和GTK工具之间的连接创建了一个独立的平台,可以在Linux和Windows环境中运行。
使用PHP- gtk,您可以创建一个应用程序,它可以连接到服务器(数据库、文件访问等),就像PHP中编写的所有其他程序一样,但是由于在客户机上运行,也可以完全访问这个(运行应用程序、编写本地文件和访问设备)的资源。为此,需要在每个运行PHP-GTK应用程序的客户机上安装PHP-GTK。
GTK手册  http://api.kupebank.com/gtkbook/

What is PHP-GTK?

php-gtk example

PHP-GTK is an extension for the PHP programming language that implements language bindings for GTK+. It provides an object-oriented interface to GTK+ classes and functions and greatly simplifies writing client-side cross-platform GUI applications.

History

The PHP-GTK was established in March 2001 by Andrei Zmievski an uzbek who lives and works in the United States. As well as many projects in free software, it also started with an initial motivation a little peculiar, "I did it because I wanted to see if it was possible" in the author’s words who inspired so much in another existing project, the PyGTK (link between languages between Python and GTK). Andrei Zmievski visited Brazil in 2002, during the III International Free Software Forum, which made some presentations.

The PHP-GTK is a "language binding", ie it is a link between two existing languages, PHP language and GTK library. So PHP-GTK is the PHP itself, with more features. The PHP-GTK is the first extension of the PHP language that lets you write client-side applications with GUI (Graphical User Interface). It was written in part to prove that PHP is a language and full of great purposes. The junction between PHP and GTK tool creates an independent platform that runs on both Linux and Windows environments.

Using PHP-GTK, you create an application that has connectivity to the server (database, access to files, etc.), like all other programs written in PHP, but that because of running on the client machine, also has full access to resources of this (run applications, write local files and access devices). For this purpose, PHP-GTK needs to be installed on each client machine that will run a PHP-GTK application. 

2025 Copyright All Rights Reserved  业务咨询: