note 9712 deleted from function.mssql-connect by didou
| From: | didou@php.net | Date: | Sun, 07 Dec 2003 02:14:32 +0000 |
| Subject: | note 9712 deleted from function.mssql-connect by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-61501@lists.php.net to get a copy of this message | ||
Note Submitter: ianp@studionorth.com
----
For people who're using Win2k pro, PHP4 (win32 install shield) and MSSQL Server 6.5, 7.0 who
want to use native mssql functions:
3 Main steps:
-Get the dlls
-Place them in the root php folder
-Edit the php.ini file
GET THE DLLs:
The Dlls for mssql and others (oracle, sybase, etc.) are NOT included in the installation (Install
Shield Wizard) in the root folder.
Get the other package for windows systems (NO Install shield!). Just plain files. After unzipping
the file, look for the subdirectory called extensions. NOT the dlls folder! You'll find a
bunch of dlls with the name format like such: php_xxx. For MSSQL Server 7.0, you'll need
php_mssql70.dll. Take the mssql dll or if you're working with 6.5 take the php_mssql65.dll.
PLACE THE DLL(s):
Place the dll you want in the root folder where you installed php locally.
EDITING THE PHP.INI:
Your php.ini SHOULD be in the Windows System Root (commonly C:\WINNT).
Ok, in the php.ini file, look for the Paths and Directories section.
Your extension_dir path should look like a DOS path like this:
extension_dir = C:/php/ ; Point the directory where you installed php
; inside the root should be the dll you placed!
If the default value of extension_dir is = ./ REMOVE IT! This path should be identical to a DOS
path!
Ok, this is just a side note:
If you find a comment section for Windows Extensions inside another section called Dynamic
Extensions that has a bunch of lines like this:
;extension=php_xxx1.dll
;extension=php_xxx2.dll
;extension=php_xxx3.dll
IGNORE THIS SECTION! DON'T UNCOMMENT THE MSSQL.dll!
Last STEP!
Go to the Module Settings section. Go under [mssql].
CHANGE THE extension=xxx to the dll name you want! EX: extension=php_mssql70.dll.
THAT's it!
Save the php.ini.
Now you can call MSSQL Server functions!