That reminds me... I had to write a reference letter for everybody to learn from my experience. I guess I was too happy that it got connected. Anyway, here it goes.
First of all I have PHP 4.0.5 (4.5 MB one, which includes the php_mssql.dll), MSSQL 2000, Xitami 2.4 d6 and Windows 98 SE.
Install MSSQL 2000 the way its supposed to be done.
Make a DSN entry via ODBC just in case though it didn't work in the case of "odbc_connect()".
Install PHP and Xitami where ever you want.
Make sure Xitami is configured to accept PHP by going to the Setup of Xitami and looking under the "Filters" tab.
Now the important part:
- Copy all DLLs found under the c:\php\extensions and c:\php\dlls directories to the c:\windows\system (c:\winnt\system32 in case of NT) directory. Now this is assuming that your directories are the same as mine.
6: Edit php.ini and look for "extension_dir". It should be under the "Paths and Directories" category. Modify it to c:\windows\system (c:\winnt\system32).
7: Look for "extension=php_mssql.dll" and remove the ";" before the line, or in other words un-comment it. Save the php.ini in "c:\windows".
8: Restart your system just in case.
OR
- Edit php.ini and look for "extension_dir". It should be under the "Paths and Directories" category. Modify it to "c:\php\extensions" or "c:\php\dlls" depending where the php_mssql.dll is.
7: Look for "extension=php_mssql.dll" and remove the ";" before the line, or in other words un-comment it. Save the php.ini in "c:\windows".
8: Restart your system just in case.
So that was it. Hopefully your PHPs should run now. If they don't fell free to drop by a line. And if you have different web servers, it really shouldn't matter much.
Ciao
Schajee