command line - PHP GTK module in php.ini -


I have installed in c: \ php-gtk but when I goes Like

  cd: \ php-gtk2 php demo \ phpgtk2-demo.php  

Please give this error

  Please load the php-gtk2 module into your php.ini  

My ini file This content (called php-cli.ini )

  [PHP] ;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;; 1 ;;;;;;;;;;;;; ; About php.ini in PHP-GTK; ;;;;;;;;;;;;41 ;;;;;;;;;;;;;;;; n al .;;;;;;;;;;; ; ; This file requires php.ini settings, which you will need; Run PHP-GTK on your system. You may also need other PHP settings; Standard php.ini file, e.g. Load or otherwise control further extension; In the case of error reporting, PHP's behavior please add those people; In the upper part of this file, in the PHP section; To run PHP-GTK you must use PHP's CLI executable. This php.ini file; To avoid conflicts, PHP should be executable in the same directory as executable; With any other copy of PHP that can be installed on your machine. ; The first thing you need to do is tell PHP that you want to see it; Extension_dir = ".text" for PHP extension libraries (php _ * .dll or php _ *. Files) on your system; Ensure that under php-gtk2.dll, or under Unix php-gtk2.so, is in; Directory named in extension_dir with any other shared PHP extension; You want to use it, and tell PHP to load it. Extension = php_gtk2.dll; Extension = php_pdo **; Extension = php_sqlite **; Extension = php_pdo_sqlite ** [date]; The date defines the default timezone used by the function; date. Timezone = [PHP-GTK]; ;;;;;;;;;;;;;;; 37 ;;;;;;;;;;;;asis ;;;;;;;;;;asis; ; PHP-GTK Extensions; ;;;;;;;;;; be ;;;;;;;; p ;;;;;;;;;;;;;;; ; Extension format php_gtk _ * for PHP-GTK Dll (Windows) or; Php_gtk _ *. Therefore (Unix), here it was written as a comma-separated list. Library ; Files must be in the same directory with the PHP-GTK library, together; You are using any other PHP extension. ; Php-gtk.extensions = php_gtk_libglade2.dll, php_gtk_sourceview2.dll ;;;;;;;;;;;;;;;; 37 ;;;;;;;;;;; ; Code page; ;;;;;;;;; 37 ;;;;;;;;;;;; ; String variables used for title and other text values ​​in GTK +; Internally, a code page encoded in UTF-8 is required so that PHP-GTK 'knows'; Which is using the character set, and can convert it to UTF-8 as needed. ; If your environment already uses UTF-8, you can set up the codepept directive; UTF-8 to leave the conversion. ; The default codepage setting in PHP-GTK 2 is ISO-8859-1, but you can also; Use either OEM (eg 850) or Windows code page (like CP1250); Unless you select the encoding format, then see iconv is enabled for conversion; For a list of http://www.microsoft.com/globaldev/reference/cphome.mspx; Code pages and character sets that are supported on the Windows system are Php-gtk.codepage = CP1250  

What do I need to do? Is some mistake with INI file? Do I need to rename ? What is the problem to speed up the program?

You can take it a bit further, and about paths Can not worry, I work in the Windows environment and I also use relative paths within .ini:

  extension_dir = "ext" extension = php_cairo.dll extension = php_mongo. Dll  

This allows me to move the php-gtk folder elsewhere.

I do the same thing to run my project, I can create a CMD file like this.

  "% cd% \ .. phpGtkRuntime \ php.exe" "% cd% index.php"  

Create central folders and go to php-gtk in a subfolder and in each other, they all project like you:

  php-gtk / phpGtkRuntime php-gtk / projects  

The whole idea is that I distribute a folder with the run.cmd near the end user and paste a simple copy of the user folder, nothing really. I have created an example package with mongodibi and all this is portable too MongoDB,


Comments