Linux

Code completion for PHP-GTK in Netbeans

Jose Antonio Bayona Medina has put up a slideshow demonstrating how to use the basic technique outlined in this chapter to add PHP-GTK 2 autocompletion in Netbeans 6.7.

PHP-Editor

screenshot for <application name />PHP-Editor is a program developed in Php-Gtk using Glade and GtkBuilder.

This is a very structured program that allows up to 9 tab (which is the point of having more?), the usual options of a text editor but with the code and highlight the most important thing is the tooltip on the traditional functions of PHP with their explanation.

The package contains the generator to the database of words that must be written in a particular way and is controllable from the command line in order to compress.

PHP-GTK + pcntl_fork()

Hi. Code:

<?php
$window
= new GtkWindow;
$window->set_size_request(200, 100);
$window->connect_simple('destroy', 'Gtk::main_quit');

$pid = pcntl_fork();
if (
$pid == -1)
    exit(
"Error\n");
else if (
$pid)
    echo
"parent\n";
else
    echo
"child\n";

$window->show_all();
Gtk::main();
?>

Run: the program crashes and displays an error:

parent
child
The program 'index.php' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadIDChoice (invalid resource ID chosen for this connection)'.

Notepad with GtkSourceview

screenshot for Notepar with GtkSourceviewNotepad with GtkSourceview is a program developed in Php-Gtk using Glade.

To use it, you must have PHP-GTK 2 installed on your PC, just do a search on the internet so you can discover.

This is a modified version of notepad made from kksou. But with gtksourceview and use its property for the editing of code in this case was set php.

Info on your pc

screenshot for Info on your PCInfo On your PC is a program developed in Php-Gtk using Glade.

This is a simple program to learn the basics of this language desktop, allows multi-language and have some info on your PC.

We're still here

Rumours of PHP-GTK's death have been greatly exaggerated! The project is very much still alive, but we're waiting for PHP 5.3 to come out, and also some work needs to be done on the Cairo extension before a new release can be made. This should be completed soon. This release will come with support for GTK+ 2.14 and 2.16, Cairo, and PHP 5.3.

The next release will also include official installers for Windows and Mac OSX, and an installer script (thank you bob) for Linux.

Syndicate content