RE: [PHP-GTK-DOC] cvs: php-gtk-doc /manual/en/reference/gtk gtkwidget.xml gtkwindow.xml
| From: | Andrei Zmievski | Date: | Sat, 18 Jun 2005 20:28:47 +0000 |
| Subject: | RE: [PHP-GTK-DOC] cvs: php-gtk-doc /manual/en/reference/gtk gtkwidget.xml gtkwindow.xml | ||
| References: | 1 | Groups: | php.gtk.doc |
| Request: | Send a blank email to php-gtk-doc+get-1462@lists.php.net to get a copy of this message | ||
Please don't continue advising that PHP-GTK should be loaded via dl()
function. We should stress that .ini mechanism is preferable.
-Andrei
+// Make sure the PHP-GTK 2 extension is loaded.
+if (!extension_loaded('php-gtk')) {
+ dl( 'php_gtk2.' . PHP_SHLIB_SUFFIX);
+}