php+Apache+sqlserver2000,为什么我该了php.ini里的配置,怎么还是不好使呢!sysytem32里也有php_mssql.dll和ntwdblib.DLL,而且ntwdblib.DLL的版本跟sqlserver的版本一致,但是phpinfo.php里查不到php_mssql.dll的信息,而且有个问题,我不知道跟这个有没有关系,就是php.ini里的extension_dir这个变量,extension_dir = "C:/php5/ext" 但是在phpinfo.php里面extension_dir这个项目后面却是C:\php5,这个是问题吗!!!!
你的意思就是说extension_dir不一致没问题被
[Wed Jun 02 12:19:14 2010] [notice] Child 212: Exit event signaled. Child process is ending.
[Wed Jun 02 12:19:15 2010] [notice] Child 212: Released the start mutex
[Wed Jun 02 12:19:16 2010] [notice] Child 212: Waiting for 250 worker threads to exit.
[Wed Jun 02 12:19:16 2010] [notice] Child 212: All worker threads have exited.
[Wed Jun 02 12:19:16 2010] [notice] Child 212: Child process is exiting
[Wed Jun 02 12:19:16 2010] [notice] Parent: Child process exited successfully.
[Wed Jun 02 12:19:21 2010] [notice] Apache/2.2.4 (Win32) PHP/5.2.13 configured -- resuming normal operations
[Wed Jun 02 12:19:21 2010] [notice] Server built: Jan 9 2007 23:17:20
[Wed Jun 02 12:19:21 2010] [notice] Parent: Created child process 5728
[Wed Jun 02 12:19:21 2010] [notice] Child 5728: Child process is running
[Wed Jun 02 12:19:21 2010] [notice] Child 5728: Acquired the start mutex.
[Wed Jun 02 12:19:21 2010] [notice] Child 5728: Starting 250 worker threads.
[Wed Jun 02 12:19:22 2010] [notice] Child 5728: Starting thread to listen on port 80.
这个是Apache里logs里的error信息,能看出点门道吗,谢谢大家了
PHPIniDir "c:/php"这个什么意思呀
搜索一下你的apache以及php文件夹,看看有几个php.ini,看看你的使用的配置哪一个是跟phpinfo一致或者不一致,php.ini里面内容是否正确,然后修改完再重启。
相当于配IIS时加的环境变量
我也是遇到跟楼主一样的问题,昨天调试一天没有结果,始终提示:Fatal error: Call to undefined function mssql_connect()。但我刚解决掉该问题,下面跟大家分享下解决办法:先是我配置D:\wamp\php\php.ini,即:去掉;extension=php_mssql.dll前的";",再设置mssql.secure_connection = On。第二步我检查ntwdblib.DLL的版本是否与SQL Server2005一致并替换掉(版本2000.2.8.0支持SQL Server2000,版本2000.80.194.0支持SQL Server2005)。第三步我又仔细看了一下phpinfo.php中显示的php.ini位置,发现原来wamp环境加载的是D:\wamp\Apache2\bin\php.ini ,而我却修改了D:\wamp\php\php.ini。问题就在这里!原来是wamp中有两个php.ini,大家一定要仔细看phpinfo.php信息。所以我又重新设置了D:\wamp\Apache2\bin\php.ini ,本地SQL Server2005可以连接了。