note 50659 added to ref.mysql

From: Date: Sun, 06 Mar 2005 07:01:57 +0000
Subject: note 50659 added to ref.mysql
Groups: php.notes 
Request: Send a blank email to php-notes+get-85990@lists.php.net to get a copy of this message
If you are installing PHP5 on Windows 2003 server (AKA Win 2k3) and need MySQL to work using the either the php_mysql.dll or php_mysqli.dll or both of them at the same time, and MySQl isn't showing up in phpinfo, then your php.ini is probably not loading. In the direction in the PHP 5 zip file, they will tell you to add your PHP install directory to your windows path. This should tell php where to load its php.ini from but it doesn't. If you want to get this to work, you don't have to copy any DLL's anywhere like everyone suggests. All you have to do is add the folling regsitry key to windows: [HKEY_LOCAL_MACHINE\SOFTWARE\PHP] "IniFilePath"="C:\\PHP" simply copy the above 2 lines of code into a text file and save the file as php_ini_path.reg After you save the file it will look like a registry file. Simply double click on it. It will make it so PHP will look for your php.ini in C:\PHP. I would assume you can edit this if you install php into a different location, but I haven't tried that. After running the reg file, make sure your php.ini is in your PHP dir and make sure all the appropriate things are set. This should get you up and running. Make sure you also follow all the steps on how to make it work in IIS. This is just an addition to the direction. ---- Manual Page -- http://www.php.net/manual/en/ref.mysql.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+50659 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50659&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50659&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50659&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50659&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50659&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+50659&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#85990) next »