PHP-GTK2 Cookbook Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Re:mysql connect (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:mysql connect
#558
XeKtRuM (User)
Fresh Boarder
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
Re:mysql connect 5 Months, 1 Week ago Karma: 0  
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...
 
  The administrator has disabled public write access.
#692
pierre ange (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Re:mysql connect 4 Months, 2 Weeks ago Karma: 0  
Hello,
I had the same problem, i solved it by copying libmysql.dll in the windows/system32 folder (or maybe windows/system).
(I'm really new to php-gtk so excuse me if my answer is not what you need)
 
  The administrator has disabled public write access.
#1323
scasti1 (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:mysql connect 1 Week, 6 Days ago Karma: 0  
I have read all the db posts and cannot connect. Can anyone help?

Scott
 
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Blog - Forum - Privacy Policy - Contact Us
Copyright © 2006-2009. kksou.com. All Rights Reserved