[Glade-users] My first failed attempt with glade and php



Ok. What is wrong?

I installed glade 3 and created the most simple app a window with a
label.
-----------------------------------
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
<!--Generated with glade3 3.4.0 on Sat Dec  8 22:08:37 2007 -->
<glade-interface>
  <widget class="GtkWindow" id="window1">
    <property name="events">GDK_POINTER_MOTION_MASK |
GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK |
GDK_BUTTON_RELEASE_MASK</property>
    <child>
      <widget class="GtkLabel" id="label1">
        <property name="visible">True</property>
        <property name="events">GDK_POINTER_MOTION_MASK |
GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK |
GDK_BUTTON_RELEASE_MASK</property>
        <property name="label" translatable="yes">Hello</property>
      </widget>
    </child>
  </widget>
</glade-interface>
-----------------------------------

and then use this code

------------------------------------------
if (!extension_loaded('php-gtk')) {
        dl( 'php_gtk.' . PHP_SHLIB_SUFFIX);
}

$glade = new GladeXML('hello.glade');
 
//Start the main loop
Gtk::main();


----------------------------------

I chmod 755 login.php and then ran it like
php -c /etc/gtk/php.ini login.php

AND NOTHING HAPPENED


What is my newbie mistake???? Thank you

PS: I am able to run the test program that came with php-gtk, just not
the one with glade 






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]