pripojeni php na MS SQL Server 2005

apt-get install php-pear
pear list
pear install MDB2

pred pokracovanim je treba mit nainstalovano php mssql extension
v debianu staci:
apt-get install php5-sybase

v ubuntu (Feisty) je potreba php-mssql zkompilovat:
clanek kompilace php-mssql

pear install MDB2_Driver_mssql

dalsi mozna potiz:
Trying to install MDB2_Driver_mssql returns the error: pear/MDB2_Driver_mssql requires PHP extension "mssql" php5-sybase will work with this package, but it doesn't know it -- to skip dependency checking in the pear install do:
pear install --nodeps MDB2_Driver_mssql
The driver also has a line to check for mssql support in PHP, it will return error: extension mssql is not compiled into PHP
Comment out the test at /usr/share/php/MDB2/Driver/mssql.php line 314 (or search for text "is not compiled into PHP").
Last update:
2010-01-19 13:44
Average rating:0 (0 Votes)

You can comment this FAQ

Chuck Norris has counted to infinity. Twice.