note 34130 added to ref.mssql

From: Date: Wed, 16 Jul 2003 20:34:35 +0000
Subject: note 34130 added to ref.mssql
Groups: php.notes 
Request: Send a blank email to php-notes+get-52226@lists.php.net to get a copy of this message
Web Server Type: Windows 2000 Server SQL Server Type: Version 7 ERROR: Unable to load dynamic library '.\php_mssql.dll' - The specified module could not be found. in Unknown on line 0 ERROR: Unable to load dynamic library '.\php_mssql.dll' - The specified procedure could not be found. in Unknown on line 0 How To Fix: First in most circumstances you are getting this error because you have a older version of PHP installed (Such as 4.2.3), but you are trying to use a newer php_mssql.dll file (Such as the one that comes with 4.3.0) Step 1: Create a file called info.php that contains the single line: <?php phpinfo(); ?> -executing this file in your web browser will tell you what version of PHP you are running and it will through a couple of visual alerts displaying the errors mentioned above. Step 2: If you installed PHP using the installer you will have to go back to the php site and download the binary .zip file for Windows, for the version of PHP you currently have installed. Step 3: Open the zip file (you don't have to unzip the whole file becuase you are just looking to copy one (1) dll file, "php_mssql.dll". Step 4: Pending on whether you are running a default install, copy the "php_mssql.php" file to the following directory "c:\winnt\" Step 5: Double check that the following file exists: c:\winnt\system32\ntwdblib.dll Step 6: Edit your php.ini, search for the string "php_mssql.dll", and remove the semi-colon (;) from the front of the value. Step 7: Start and stop IIS Services by clicking the windows "start" button in the bottom left corner, select run, and type the command: net stop iisadmin (Type y at the promt) When the command window dissapears, click the windows "start" button in the bottom left corner again, select run, and type the command: net start w3svc Step 8: Run your info.php file again. If you did not get any errors, you are good to go; if you get the error again or your error looks like this: 'c:\program files\php\extensions\php_mssql.dll', then you need to move your "c:\winnt\php_mssql.dll" to the directory mentioned in the error message, for this example: "c:\program files\php\extensions\". After flollowing this I get the error msg.(PHP Warning: Unknown(): Unable to load dynamic library './php_mssql.dll' - Access is denied. in Unknown on line 0) anyone can help me here? ---- Manual Page -- http://www.php.net/manual/en/ref.mssql.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34130 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34130&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34130&report=yes

« previous php.notes (#52226) next »