asuming that you're running php-gtk2 on windowns, check if you get something like the following:
| Code: |
PHP Warning: PHP Startup: mysql: Unable to initialize module
Module compiled with module API=20070729, debug=0, thread-safety=1
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match in Unknown on line 0 |
if so, you should do what boombasta sugest, if not then you should check your php-cli.ini(this is the default name that comes with the zip version of php-gtk2.0.1) or php.ini for the "extension=php_mysql.dll" line and uncomment it or write it if this doesnt exists. if this is allready checked and you still get:
| Code: |
Fatal error: Call to undefined function mysql_connect() in C:\PHP\gtk\sample.php on line 18 |
without the above PHP Warning then check that your php-cli.ini or php.ini has the correct directive on line:
| Code: |
extension_dir = "./ext" |
(I don't think this could be, cause I asume that the php_gtk2.dll is loaded and this file is in the same "ext" directory, but with problems around you, there's never a useless step to check) if you still get the same error then... god help you...