View Full Version : PHP-GTK installation help
03-20-2004, 04:15 AM
I've decided to plunge into php-gtk to see what it's capable of doing, but I can't get it to install at all. The documentation isn't even worth reading. I'm on XP, I've done new installations, copied everything into my existing php directory, restarted apache, restarted mysql, everything I can think of but I still can't seem to get anything to work at all. Whatever I try, I always get the open file with prompt. Any ideas what I'm doing wrong? It's startin to annoy me
03-20-2004, 04:12 PM
how are you running the script ?
the failsafe would be to use a simple php.ini with NO extensions to start off with, make a batch file (or type at dos ~)
c:/path/to/php.exe -q -c c:/path/to/simple_php.ini -f c:/path/to/gtk_scripts.php
and in your script dl() the exact path (or set the simple_php.ini extension directory to point here)
note that existing php-gtk will not work with php5 or php<(I think)4.2
... if you are using this , http://www.firepages.org/gtkdev.htm then I have had several comments that the file associations don't work , all I can say is they have always done for me , at least on 2k/XP
03-20-2004, 04:17 PM
Cheers, the code you showed worked :). Why doesn't it show this in the manual? :confused: Where can I learn what the -q -c does?
03-21-2004, 02:33 AM
Hi , I think it does show the switches somewhere in the manual under the command line/cli section or ... cd to your php directory via dos and type php --help for a full list.
-q supresses HTML headers (not really needed if php.exe is cli version)
-c lets you specify an alternate php.ini
-f tells php which script to run (not really needed if its the last argument)
03-21-2004, 10:30 AM
Ta for the php --help, told me everything I needed to know. I don't like the gtk manual, can never find anything. Doesn't even have the good search engine like on the php site.
I take it with the lack of user comments and lack of updates that it's not really used much by anyone? I don't know why, it's fun :D
03-22-2004, 02:19 AM
take it with the lack of user comments and lack of updates that it's not really used much by anyone
well its a little unfair to judge any manual against the core PHP system as it sets standards ;)
the biggest problem with the PHP-GTK manual is how hard it is to actually work on it , it uses a complex build system & adding new data/pages/sections requires knowledge of XML/XSLT + awk,sed and custom php build routines etc, its a nightmare to work with & IMO harder to build than php-gtk itself.
but excuses aside ... ;) all php-gtk work is now concentrated on GTK2/PHP5 , a lot of stuff is deprecated from GTK1.3 > 2.0 and the actual GTK bindings themselves + the new PHP5 object model will mean much of it will require re-writing & a lot of new stuff added as well, so its unlikely to get much better until PHP5 is stable and the GTK2 port is complete..
..hopefully a new manual system as well but we shall see....
but it is fun innit :D
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.