Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-20-2004, 03:15 AM   PM User | #1
Nightfire
Senior Coder

 
Nightfire's Avatar
 
Join Date: Jun 2002
Posts: 4,266
Thanks: 6
Thanked 48 Times in 48 Posts
Nightfire is on a distinguished road
PHP-GTK installation help

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
__________________
Blue Panda
Website Design | 1 Pound Ads | 'ow much? | Coding Geeks
Nightfire is offline   Reply With Quote
Old 03-20-2004, 03:12 PM   PM User | #2
firepages
Super Moderator


 
Join Date: May 2002
Location: Perth Australia
Posts: 3,911
Thanks: 5
Thanked 79 Times in 78 Posts
firepages will become famous soon enough
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 ~)

Code:
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)

dl('c:/path/to/php_gtk.dll');

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
__________________
resistance is...

MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)
firepages is offline   Reply With Quote
Old 03-20-2004, 03:17 PM   PM User | #3
Nightfire
Senior Coder

 
Nightfire's Avatar
 
Join Date: Jun 2002
Posts: 4,266
Thanks: 6
Thanked 48 Times in 48 Posts
Nightfire is on a distinguished road
Cheers, the code you showed worked . Why doesn't it show this in the manual? Where can I learn what the -q -c does?
__________________
Blue Panda
Website Design | 1 Pound Ads | 'ow much? | Coding Geeks
Nightfire is offline   Reply With Quote
Old 03-21-2004, 01:33 AM   PM User | #4
firepages
Super Moderator


 
Join Date: May 2002
Location: Perth Australia
Posts: 3,911
Thanks: 5
Thanked 79 Times in 78 Posts
firepages will become famous soon enough
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)
__________________
resistance is...

MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)
firepages is offline   Reply With Quote
Old 03-21-2004, 09:30 AM   PM User | #5
Nightfire
Senior Coder

 
Nightfire's Avatar
 
Join Date: Jun 2002
Posts: 4,266
Thanks: 6
Thanked 48 Times in 48 Posts
Nightfire is on a distinguished road
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
__________________
Blue Panda
Website Design | 1 Pound Ads | 'ow much? | Coding Geeks
Nightfire is offline   Reply With Quote
Old 03-22-2004, 01:19 AM   PM User | #6
firepages
Super Moderator


 
Join Date: May 2002
Location: Perth Australia
Posts: 3,911
Thanks: 5
Thanked 79 Times in 78 Posts
firepages will become famous soon enough
Quote:
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
__________________
resistance is...

MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)
firepages is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:19 AM.


Advertisement
Log in to turn off these ads.