Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 34 lines (29 sloc) 0.852 kb
362bb46 @anantn Initial import of package.
anantn authored
1 #!/usr/bin/php
2 <?php
3
4 /**
5 * Gtk2_PHPConfig : Perform GUI based configuration of a php.ini file
6 *
7 * @author Anant Narayanan <anant@php.net>
8 */
9
10 require_once("Gtk2/PHPConfig.php");
11
12 switch ($argc) {
13 case 1:
14 $test = new Gtk2_PHPConfig(NULL);
15 Gtk::main();
16 break;
17 case 2:
18 if (file_exists($argv[1])) {
19 echo "\nThe INI File is being parsed... Please be patient...\n";
20 $test = new Gtk2_PHPConfig($argv[1]);
21 Gtk::main();
22 break;
23 } else {
24 echo "\nThe file does not exist!\n";
25 }
26 default:
dd6d9f0 @anantn 1.0.0RC1 release, with bugfixes, extension support and faster parsing :)
anantn authored
27 echo "\nUsage: gtk2_phponfig [INI File]\n";
362bb46 @anantn Initial import of package.
anantn authored
28 echo "Where [INI File] is an optional argument, and the name of the file you want to edit.";
29 echo "\nIf no arguments are passed, a new INI file is created\n\n";
30 exit();
31 }
32
33 ?>
Something went wrong with that request. Please try again.