SQLSRV na PHP7

curl -s https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
curl -s https://packages.microsoft.com/config/debian/8/prod.list > /etc/apt/sources.list.d/mssql-release.list
apt-get update
ACCEPT_EULA=Y apt-get -y install msodbcsql
apt-get install unixodbc-dev
apt-get install php-dev
pecl install sqlsrv-4.1.6.1
pecl install pdo_sqlsrv-4.1.6.1
echo -e "; priority=20\nextension=sqlsrv.so" > /etc/php/7.0/mods-available/sqlsrv.ini
echo -e "; priority=20\nextension=pdo_sqlsrv.so" > /etc/php/7.0/mods-available/pdo_sqlsrv.ini
phpenmod sqlsrv pdo_sqlsrv
service apache2 restart
Pokračovat ve čteníSQLSRV na PHP7