Usage – Using Gtk2_PHPConfig

Using Gtk2_PHPConfig

Simple Configuration GUI



switch (
$argc) {
$test = new Gtk2_PHPConfig(NULL);
        if (
file_exists($argv[1])) {
"\nThe INI File is being parsed... Please be patient...\n";
$test = new Gtk2_PHPConfig($argv[1]);
        } else {
"\nThe file does not exist!\n";
"\nUsage: gtk2_phpconfig [INI File]\n";
"Where [INI File] is an optional argument, and the name of the
        file you want to edit."
"\nIf no arguments are passed, a new INI file is created\n\n";


This example is actually the gtk2_phpconfig executable found in /usr/bin (for *nix systems) after installation of the Gtk2_PHPConfig package.

The example script accepts a single optional argument, i.e. the location of the ini file to edit. If not provided, a new file will be created.

Gtk2_PHPConfig extends GtkWindow and can be treated as an application by itself. Hence, the methods used internally are of no significance to the end user. However, you may refer to the API documentation if you are interested in customization or just understanding how the package works.

About Gtk2_PHPConfig (Previous) Gtk2_ScrollingLabel (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.