shb
05-08-2004, 14:09
hi ich bins mal wieder *G*
nun hab ich ein script mit php geschrieben was mir aus eine datenbank ein pdf erzeugt
nun wollte ich mit dazu ein frontend bauen html wollte ich nutzten, da ich das schon kann *G* und deshalbe versuche ich es mit php-gtk
hier ist das script aus einem tutorial
#!/usr/local/bin/php -q
<?php
if (!class_exists('gtk')) {
dl('php_gtk.' . (strstr(PHP_OS, 'WIN') ? 'dll' : 'so'));
}
/*Now, create the window widget as a variable.*/
$window = &new GtkWindow();
/*Next, create a title for this new window widget.*/
$window->set_title("PHP Window Number 1");
/*Then you will set the widget window to the center of the screen.*/
$window->set_position(GTK_WIN_POS_CENTER);
/*This statement is also necessary in all PHP-GTK applications that have graphics on the screen.
This shows all the parent widgets and their children.*/
$window->show_all();
/* Run the program from top to bottom. */
Gtk::main();
?>
ich hab nur kopiert noch nix gemacht und es ausführbar gemacht und ausgefürht.
dies ist die fehlermeldung:
./test1.php
<br />
<b>Warning</b>: dl() [<a href='function.dl'>function.dl</a>]: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20040412/php_gtk.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20040412/php_gtk.so: cannot open shared object file: No such file or directory in <b>/home/shb/php/test1.php</b> on line <b>4</b><br />
<br />
<b>Fatal error</b>: Class 'GtkWindow' not found in <b>/home/shb/php/test1.php</b> on line <b>8</b><br />
ich kann nur grob was mit der fehlermeldung anfangen ich php-gtk als rpm installiert fehlt nochwas oder ist was falsch eingerichtet
cu SHB
nun hab ich ein script mit php geschrieben was mir aus eine datenbank ein pdf erzeugt
nun wollte ich mit dazu ein frontend bauen html wollte ich nutzten, da ich das schon kann *G* und deshalbe versuche ich es mit php-gtk
hier ist das script aus einem tutorial
#!/usr/local/bin/php -q
<?php
if (!class_exists('gtk')) {
dl('php_gtk.' . (strstr(PHP_OS, 'WIN') ? 'dll' : 'so'));
}
/*Now, create the window widget as a variable.*/
$window = &new GtkWindow();
/*Next, create a title for this new window widget.*/
$window->set_title("PHP Window Number 1");
/*Then you will set the widget window to the center of the screen.*/
$window->set_position(GTK_WIN_POS_CENTER);
/*This statement is also necessary in all PHP-GTK applications that have graphics on the screen.
This shows all the parent widgets and their children.*/
$window->show_all();
/* Run the program from top to bottom. */
Gtk::main();
?>
ich hab nur kopiert noch nix gemacht und es ausführbar gemacht und ausgefürht.
dies ist die fehlermeldung:
./test1.php
<br />
<b>Warning</b>: dl() [<a href='function.dl'>function.dl</a>]: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20040412/php_gtk.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20040412/php_gtk.so: cannot open shared object file: No such file or directory in <b>/home/shb/php/test1.php</b> on line <b>4</b><br />
<br />
<b>Fatal error</b>: Class 'GtkWindow' not found in <b>/home/shb/php/test1.php</b> on line <b>8</b><br />
ich kann nur grob was mit der fehlermeldung anfangen ich php-gtk als rpm installiert fehlt nochwas oder ist was falsch eingerichtet
cu SHB