| View previous topic :: View next topic |
| Author |
Message |
piotrcode
Joined: 13 Jun 2006 Posts: 3
|
Posted: Tue Jun 13, 2006 2:00 am Post subject: PHP-GTK2 and MYSQL |
|
|
I use Windows XP.
I have installed PHP-Gtk2 by the gnope intaller (I have PHP-Gtk2 directory on c disk)
I have written the windowed aplication in php.
I could run my application by "php.exe myaplication.php" in the command line.
When I wanted my application to work together with the mysql database and added to my aplication line: mysql_connect (); the application do not run and I get in the command line the error: "Fatal error: Call to undefined function mysql_connect() in C:\prog".
Is that mean that windowed php aplications can not work with mysql?
I am very disappointed, please tell me if this is not true. |
|
| Back to top |
|
 |
omis28ca
Joined: 26 Dec 2005 Posts: 11 Location: Fresno, CA
|
Posted: Tue Jun 13, 2006 2:55 am Post subject: Possible answer |
|
|
Please see this topic http://www.gnope.org/forum/viewtopic.php?t=196
youll find your answer there you might need to install the MYSQL extension for PHP5 as the GNOPE version does not come with it installed by default |
|
| Back to top |
|
 |
piotrcode
Joined: 13 Jun 2006 Posts: 3
|
Posted: Tue Jun 13, 2006 12:37 pm Post subject: |
|
|
| Thank You, I have found it before You answered, now everything is woking well. |
|
| Back to top |
|
 |
taymtogo
Joined: 26 Mar 2008 Posts: 1
|
Posted: Wed Mar 26, 2008 3:38 am Post subject: |
|
|
hello i'm having the same problem.
i couldn't load the php_mysql.dll
i'v added the php_mysql.dll to the ext directory
the php5ts.dll & libmysql.dll to the root directory of the php-gtk2
but it wont work
here is the error message thrown after executing the app :
//////////////////////////
"PHP Warning: PHP Startup: mysql: Unable to initialize module
Module compiled with module API=20060613, 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"
///////////////////////////////
i think maybe because of the version of the extension
can anyone help me out of here
i've tried everything & i'm stucked |
|
| Back to top |
|
 |
|