Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts

    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

  • #2
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,058
    Thanks
    10
    Thanked 96 Times in 94 Posts
    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)

  • #3
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    Cheers, the code you showed worked . Why doesn't it show this in the manual? Where can I learn what the -q -c does?

  • #4
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,058
    Thanks
    10
    Thanked 96 Times in 94 Posts
    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)

  • #5
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    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

  • #6
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,058
    Thanks
    10
    Thanked 96 Times in 94 Posts
    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)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •