I installed PHP GTK in C:\\php-gtk
but when I go to run it like from the command line like this
cd C:\\php-gtk2
php demos\\phpg
you can take it a bit further, and not worry about paths, I work in Windows environment and I use relative paths even inside .ini like this:
extension_dir = "ext"
extension = php_cairo.dll
extension = php_mongo.dll
This allows me to move the php-gtk folder anywhere.
As for running my projects I do a similar thing, I create .cmd files like this:
"%CD%\..\..\PhpGtkRuntime\php.exe" "%CD%\index.php"
So you can have for example a central folder and in a subfolder goes php-gtk and in an other one all you projects like this:
php-gtk/PhpGtkRuntime
php-gtk/Projects
The whole idea is that I distribute a folder to the final user with a run.cmd inside it and the user does a simple copy paste of the folder, really nothing else. I have made an example package with MongoDB included and all of it is portable even MongoDB, Check here..
Ok the problem was that I needed to call php-gtk as I had renamed it already
Just solved the problem.
I was trying to run the demo script from the demos folder. But when I tried it with the same folder where the php.exe is it ran smoothly. So there is no problem with the php-cli.ini or no need to worry about this error "Please load the php-gtk2 module in your php-cli.ini"
So Goodluck with PHP-GTK.