|
Programming Links Programowanie PHP - Programowanie PHP - Artykuły PHP - Wiadomości PHP - Porady Aplikacje internetowe Other Links Funny Jokes Sudoku puzzle DMOZ Directory |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
LXXX. Microsoft SQL Server FunctionsIntroductionThese functions allow you to access MS SQL Server database. RequirementsRequirements for Win32 platforms. The extension requires the MS SQL Client Tools to be installed on the system where PHP is installed. The Client Tools can be installed from the MS SQL Server CD or by copying ntwdblib.dll from \winnt\system32 on the server to \winnt\system32 on the PHP box. Copying ntwdblib.dll will only provide access. Configuration of the client will require installation of all the tools. Requirements for Unix/Linux platforms. To use the MSSQL extension on Unix/Linux, you first need to build and install the FreeTDS library. Source code and installation instructions are available at the FreeTDS home page: http://www.freetds.org/
InstallationThe MSSQL extension is enabled by adding extension=php_mssql.dll to php.ini. To get these functions to work, you have to compile PHP with --with-mssql[=DIR], where DIR is the FreeTDS install prefix. And FreeTDS should be compiled using --enable-msdblib. Runtime ConfigurationThe behaviour of these functions is affected by settings in php.ini.
Table 1. MS SQL Server configuration options
Predefined ConstantsThe constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime.
|