Re: error loading php_gtk2.so

From: Date: Mon, 30 Jan 2006 16:40:01 +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  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-6612@lists.php.net to get a copy of this message
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.

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