![]() |
White screen - pb with mysql_connect
Hello,
I can't connect to mySQL because something don't work : I've got the 'echo' I put just before CONNECT.PHP calls mysql_connect, but I the 'echo' that is just after the call doesn't appear : if (!defined('PHPDIG_DB_NAME')) { The phpdig database and tables have been created in command-line mode, so mySQL is working. What's wrong ? |
Solved : MySQL is an extension of PHP
This was obvious :
MySQL is an extension of PHP. So, another modification of php.ini is required. See the official PHP documentation for further explanation : http://www.php.net/manual/en/ref.mysql.php |
what you want us to look specifically over here ...
http://www.php.net/manual/en/ref.mysql.php :deal: |
Windows - Linking MySQL to PHP
Hi,
You can get more complete information here : http://www.php.net/manual/en/install...extensions.php For the installation of MySQL, I did the following modifications in the PHP.INI file : extension_dir = "./ext/" extension=php_mysqli.dll extension=php_mysql.dll Note that the lines are uncommented (i.e. without the leading ';'). Then, I created a folder 'ext' in the PHP directory, and put there the files 'php_mysqli.dll' and 'php_mysql.dll'. I also copied the 'libmysql.dll' file into the folder C:\WINNT\System32 (because windows is there, could be C:\WINDOWS or anything else). I found these files into the manual distribution of PHP. The path to the PHP directory was specified during the installation of PHP, by adding it to the PATH environment variable (configuration panel / system / advanced). Then, I restarted the machine, but I think you could jut restart the web server. Then the install.php worked. I hope this will be helpfull. |
All times are GMT -8. The time now is 09:23 PM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.