php5连接sql2000杯具了,请高手指点!!

2025-02-26 09:09:59
推荐回答(2个)
回答1:

mssql的dll你有没有?

还有就是你的extension_dir的目录是不是指向你的php的dll文件夹?
放在system32下也可以

回答2:

For the mssql extension to work, all of the following must be true:

1. The php.ini that you are changing must be the one that php is using.

2. The php_mssql.dll must be in the ext folder.

3. The extension_dir setting in php.ini must be set to the ext folder, something like extension_dir = c:\php\ext

4. To get changes made to php.ini to take effect, you must stop and start the IIS web service. Do this in the services control panel or reboot your computer. Just stopping and starting the web site in the IIS management console is not enough.

5. mssql requires: ntwdblib.dll to be available on the Windows PATH. It is better to add the php folder to the Windows PATH instead of moving any files around. Re-logon or reboot your computer to get any changes made to the Windows PATH statement to take effect.

6. The php folder must have proper permissions set to allow the IIS user account to read the files in the php folder and in the ext folder.