PHP-GTK2 Cookbook Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Re:MySQL not working! Solved! (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:MySQL not working! Solved!


#10
vpsiteworks (Visitor)
Posts: 0
graphgraph
User Offline Click here to see the profile of this user
Birthdate:
MySQL not working! 2 Years, 8 Months ago Karma: 0  
I am currently trying to learn how to use the GTK2 API and framework and I can't get the php_mysql.dll to work. It loads the program fine untill I use a function in that extension. like mysql_connect();

Well I don't have any Ideas.

I took the dll from my installation of php, and also the libmysql.dll too.

If anyone has any Ideas please help.

Donald Duvall.
 
  The administrator has disabled public write access.

#11
linde002 (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re: MySQL not working! 2 Years, 8 Months ago Karma: 0  
Have you enabled the extensions in the php.ini/php-cli.ini?

Extract from my php-cli.ini
Code:
extension = php_gtk2.dll
extension = php_pdo.dll
extension = php_sqlite.dll
extension = php_pdo_sqlite.dll
extension = php_sockets.dll
extension = php_mysql.dll
extension = php_pdo_mysql.dll
 
  The administrator has disabled public write access.

#12
vpsiteworks (Visitor)
Posts: 0
graphgraph
User Offline Click here to see the profile of this user
Birthdate:
Yeah 2 Years, 8 Months ago Karma: 0  
yes I have.

If someone could email me the DLL's I would appreciate it. I don't think The two I have are new and compatible with GTK. Or maybe it's just a bug in vista.

Here is what I am running.

PHP-GTK2 from gtk.php.net
Windows Vista Business Edition
AMD Turion 64 x2

And thats it. So if you have some more Ideas Thank you.
 
  The administrator has disabled public write access.
#13
linde002 (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re: MySQL not working! 2 Years, 8 Months ago Karma: 0  
If the DLL's aren't compatible PHP will tell you when you try to run the script and exit before executing.

What is the error you get when you try to use a MySQL function?
 
  The administrator has disabled public write access.
#84
wim stockman (User)
Fresh Boarder
Posts: 19
graphgraph
User Offline Click here to see the profile of this user
Re:MySQL not working! 2 Years, 6 Months ago Karma: 0  
Hello ,

I added the line to php-cli.ini. But now I get a conflict of versions. Is there some site where you can find different version of php_mysql.dll. So i can download the right one.
Thank you.

Greeting Wim

P.S. Shouldn't we include mysql as a standard extendsion in php-gtk since it is what made php big.
 
  The administrator has disabled public write access.
#85
wim stockman (User)
Fresh Boarder
Posts: 19
graphgraph
User Offline Click here to see the profile of this user
Re:MySQL not working! Solved! 2 Years, 6 Months ago Karma: 0  
I found the solution for everybody who has trouble with
mysql and php-gtk

first download php-gtk package windowd binary from the http://gtk.php.net/download.php
extract it

second download php-gtk extension pack for windowd from http://gtk.php.net/download.php
extract it in the same folder.

Then edit your php-cli.ini file in your php-gtk folder
and make shure you put php_mysql.dll in extension around line 26 normally it should look then something like this:
extension = php_gtk2.dll
extension = php_mysql.dll
;extension = php_pdo.**
;extension = php_sqlite.**
;extension = php_pdo_sqlite.**


Thanks for all the great work of php-gtk2
my first app is almost ready. I'll postit here somewhere when the first beta release is ready.

Kind Regards
Wim Stockman
 
  The administrator has disabled public write access.
#3617
evilunix (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Re:MySQL not working! Solved! 2 Months, 3 Weeks ago Karma: 0  
As MySQL is no longer included in the extension pack, the solution to the problem is to download a NON-THREAD-SAFE version of PHP from http://php.net/releases/index.php and copy php_mysql.dll and/or php_mysqli.dll into the /ext folder.

You also need to add

extension = php_mysql.dll

to php-cli.ini

If you are using thread safe versions of the dll files, your application will crash when it tries to call mysql_connect. This only becomes clear when you enable error logging in the .ini file and check the error log!
 
  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