Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mssql and IIS6

Status
Not open for further replies.

Borvik

Programmer
Jan 2, 2002
1,392
US
mssql_connect fails siting "function undefined" - now I know this would mean the php_mssql.dll extension isn't loaded, but with the reports I'm getting from the server I haven't a clue as to what is going on.

Here is ther server specs:
Microsoft Windows Server 2003 Web Edition
PHP 5.1.6 (as reported by phpinfo())

phpinfo() doesn't list mssql anywhere on the page, but when I use the command prompt to query for the php module information it is listed.

Code:
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

C:\Documents and Settings\Administrator>php -m
[PHP Modules]
bcmath
calendar
com_dotnet
ctype
date
dom
ftp
gd
hash
iconv
libxml
mssql
mysql
odbc
pcre
Reflection
session
SimpleXML
SPL
standard
tokenizer
wddx
xml
xmlreader
xmlwriter
zlib

[Zend Modules]


C:\Documents and Settings\Administrator>

I also see it listed when I do a the command "php.exe -i".

Anyone know what might be going on?
 
Oh and occassionly when I try changing things to try and fix this I get the following error regards of the contents of the file ( just echo phpinfo(); ).

No input file specified.
 
Aha,

Got it - somehow the doc_root setting in the php.ini file was causing problems. When I reset it to (uncommented) "doc_root = " and restart IIS phpinfo was showing mssql.

Cheers, all.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top