Re: error loading php_gtk2.so

From: Date: Mon, 30 Jan 2006 16:51:21 +0000
Subject: Re: error loading php_gtk2.so
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-6615@lists.php.net to get a copy of this message
Your problem's with the shell-init thing, whatever that is. The warning is a PHP-GTK2 warning, which - like all PHP warnings - doesn't prevent the script from running. - Steph ----- Original Message ----- From: "dottedquad (sent by Nabble.com)" <lists@nabble.com> To: <php-gtk-general@lists.php.net> Sent: Monday, January 30, 2006 6:40 PM Subject: Re: [PHP-GTK] error loading php_gtk2.so
I loaded a simple script name test.php with just echo "Executed!" in it which worked excellent. Now when I tried to load a script tow ork with php-gtk I get the follow error: shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory Warning: GtkWidget::set_usize() is deprecated: use GtkWidget::set_size_request() in /home/dottedquad/Desktop/php-gtk/office/container.php on line 18 Code: <?php function delete_event() { return false; } /* This is very important to actually destroying any instances * of php running */ function destroy() { Gtk::main_quit(); } /* Creation of the main window (container) */ $main_window = &new GtkWindow(); $main_window->set_name('main container'); $main_window->set_title('Test Window'); $main_window->set_usize(500, 500); $main_window->connect('destroy', 'destroy'); $main_window->connect('delete-event', 'delete_event'); $main_window->set_border_width(10); $main_window->set_position(GTK_WIN_POS_CENTER); /* Finishes off the entire program */ Gtk::main(); ?> Could anyone give syntax to simple code to see if php-gtk is working correctly? -- View this message in context: http://www.nabble.com/error-loading-php_gtk2.so-t1019739.html#a2663197 Sent from the Php - GTK - General forum at Nabble.com. __________ NOD32 1.1380 (20060125) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com


« previous php.gtk.general (#6615) next »