<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
    <channel>
        <title>Web-Site-Scripts.com - Database Drviers</title>
        <link>https://www.web-site-scripts.com/knowledge-base/category/113</link>
        <description><![CDATA[Root / KnowledgeBase Manager Pro / Installation Manual / PHP / Database Drviers]]></description>
        <language>en-us</language>
        <generator>KnowlageBase RSS Generator</generator>

         
                <item>
                        <title>PHP drivers for Microsoft SQL (Windows + Apache)</title>
                                    <link>https://www.web-site-scripts.com/knowledge-base/article/AA-00748</link>
                                    <description><![CDATA[<p></p>
<p>KMP uses Microsoft's SQLSRV driver, which installs as a PHP extension, to connect to a MSSQL database. This guide explains how to install this driver on Windows with Apache.</p>
<h2>Supported PHP versions:</h2>
<ul style="list-style-type: none; "><li><span style="line-height: 16px; ">PHP v5.3.6+</span></li><li><span style="line-height: 16px; ">PHP v5.4.*</span></li></ul><h2><span style="color: rgb(63, 113, 173); line-height: normal;">Installation</span></h2>
<p></p>
<p style="line-height: 18px; "></p>
<p><span style="line-height: 18px; ">Download the</span>&nbsp;<span style="background-color: rgb(255, 255, 255); "><b>SQLSRV30.EXE</b> file from</span>&nbsp;<a href="http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;id=20098" target="_blank" style="line-height: 18px; ">the official Microsoft website</a>.</p>
<p style="line-height: 18px; ">Double click on the downloaded file. It is a self-extracting archive. It will ask you where to extract the files. Use a temporary target folder for this, you would need only one of the extracted files.</p>
<p style="line-height: 18px; ">Check the upacked files. You can see a bunch of them, though you need only one file. You should use the Tread Safe version of PHP with Apache (if you're using a package like XAMPP, your PHP version is Tread Safe). If you're using PHP v5.3.6+, you would need this file:</p>
<p style="line-height: 18px; "></p>
<div class="preformatted"><div class="preformattedContent" style="font-size: 12px; ">php_sqlsrv_53_ts.dll<br></div></div>
<p style="line-height: 18px; ">Or if you're using PHP v5.4+ the file would be this one:</p><p style="line-height: 18px; "></p><div class="preformatted">
<div class="preformattedContent">
php_sqlsrv_54_ts.dll</div></div><p></p><p style="line-height: 18px; ">Copy the chosen file to the PHP extensions directory. By default it is C:\Program Files (x86)\PHP v5.4\ext or similar (for the latest XAMPP versions it is C:\xampp\php\ext by default). If you're not sure, check the "extension_dir" parameter in the php.ini file.</p>
<p style="line-height: 18px; "></p>

<p style="line-height: 18px; ">To load the sqlsrv dirver, add the following line to the php.ini (for PHP v5.3.6+):</p>
<p style="line-height: 18px; "></p>
<div class="preformatted"><div class="preformattedContent" style="font-size: 12px; ">extension=php_sqlsrv_53_ts.dll</div></div>
<p style="line-height: 18px; ">Or</p><p style="line-height: 18px; "></p><div class="preformatted">
<div class="preformattedContent">
extension=php_sqlsrv_54_ts.dll</div>
</div>
<p>for PHP v5.4+.</p><p></p><p style="line-height: 18px; ">Also, you would need to install&nbsp;<a href="http://www.microsoft.com/en-us/download/details.aspx?id=8328" target="">Microsoft Visual C++ 2010 SP1 Redistributable Package (x86)</a>&nbsp;on the web server.</p>
<p><span style="line-height: 18px; ">Restart Apache.</span></p>
<p style="line-height: 18px; ">To determine whether the driver has been successfully loaded,&nbsp;<a href="http://www.web-site-scripts.com/knowledge-base/article/AA-00616/0" target="" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-color: initial; border-image: initial; outline-style: none; outline-width: initial; outline-color: initial; border-style: initial; ">run a script that calls phpinfo()</a>.</p>
<p style="line-height: 18px; ">Search for "sqlsrv" on that page (use Ctrl-F shortcut in your browser). If sqlsrv driver is installed correctly, you should see something like this:</p>
<p style="line-height: 18px; "><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00718/sqlsrv.png" alt="" title="" width="660" height="164" border="0" hspace="0" vspace="0" align="" style="margin: 0px; border-width: 0px; "><br></p>
<p style="line-height: 18px; ">Microsoft SQL Server 2012 R2 Native Client must also be installed on the server on which PHP is running. To download and install SQL Server 2012 R2 Native Client now, click on the link below that matches the Windows edition on the web server:</p>
<p style="line-height: 18px; "></p>
<p style="line-height: 18px; "></p>
<ul style="list-style-type: none; "><li><span style="line-height: 16px; "><a href="http://go.microsoft.com/fwlink/?LinkID=239647&amp;clcid=0x409" target="">Download the x86 package</a></span></li><li><span style="line-height: 16px; "><a href="http://go.microsoft.com/fwlink/?LinkID=239648&amp;clcid=0x409" target="">Download the x64 package</a></span></li></ul>
<p></p>
]]></description>
                                    <pubDate>Wed, 13 Feb 2013 12:46:47 +0000</pubDate>
                                    <guid>https://www.web-site-scripts.com/knowledge-base/article/AA-00748</guid>
                    </item>
                <item>
                        <title>PHP drivers for Microsoft SQL (Windows 2003/XP + IIS6)</title>
                                    <link>https://www.web-site-scripts.com/knowledge-base/article/AA-00720</link>
                                    <description><![CDATA[<p></p>
<p>KMP uses Microsoft's SQLSRV driver, which installs as a PHP extension, to connect to a MSSQL database. This guide explains how to install this driver on Windows 2003 and Windows XP with IIS6.</p>
<h3>Supported PHP versions:</h3>
<ul style="list-style-type: none; "><li><span style="line-height: 16px; ">PHP v5.2.13+</span></li><li><span style="line-height: 16px; ">PHP v5.3.6+</span></li></ul><div><span style="line-height: 16px;">Please note that PHP v5.4 and higher is NOT supported by SQLSRV v2.0. At the same moment SQLSRV v3.0 doesn't work on IIS6. So, if you're using IIS6 and MSSQL, you need to use v5.2.* or v5.3.* family of PHP with SQLSRV v2.0.</span></div>
<p style="line-height: 18px; "></p>
<p>PHP must run via FastCGI (<a href="ARTICLE_URL#452##AA-00491#" target="">learn how to install PHP via FastCGI on IIS6</a>).<br></p><h3>Installation</h3><p></p>
<p style="line-height: 18px; "></p>
<p><span style="line-height: 18px; ">Download the</span>&nbsp;<span style="background-color: rgb(255, 255, 255); "><b>SQLSRV20.EXE</b> file from</span>&nbsp;<a href="http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;id=20098" target="_blank" style="line-height: 18px; ">the official Microsoft website</a>. Please note that the other file, SQLSRV30.EXE, includes the drivers that do not support IIS6 - you do not need to download it.&nbsp;</p>
<p style="line-height: 18px; ">Double click on the downloaded file. It is a self-extracting archive. It will ask you where to extract the files. Use a temporary target folder for this, you would need only one of the extracted files.</p>
<p style="line-height: 18px; ">Check the upacked files. You can see a bunch of them, though you need only one file. We recommend to use <b>PHP 5.3.6+</b> compiled with <b>VC9 x86 Non Thread Safe</b>, so if you installed PHP using one of our guides (<a href="http://www.web-site-scripts.com/knowledge-base/article/AA-00491/0" target="" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-color: initial; border-image: initial; outline-style: none; outline-width: initial; outline-color: initial; border-style: initial; ">guide for IIS6</a>) the file that you need is this one:</p>
<p style="line-height: 18px; "></p>
<div class="preformatted"><div class="preformattedContent" style="font-size: 12px; ">php_sqlsrv_53_nts_vc9.dll<br></div></div>
<p style="line-height: 18px; ">Otherwise, pick a file that matches your version of PHP using this table.</p>
<p style="line-height: 18px; "></p>
<p style="line-height: 18px; "></p>
<p style="line-height: 18px; "></p>
<table class="simple" style="color: rgb(0, 0, 0); line-height: 18px; "><tbody>
<tr>
<th>
<p>Driver file</p>
</th>
<th>
<p>PHP version family</p>
</th>
<th>
<p>Thread safe?</p>
</th>
<th>
<p>Use with PHP .dll</p>
</th>
</tr>
<tr>
<td>
<p>php_sqlsrv_53_nts_vc6.dll</p>
</td>
<td>
<p>5.3.*</p>
</td>
<td>
<p>no</p>
</td>
<td>
<p>php5.dll</p>
</td>
</tr>
<tr>
<td>
<p>php_sqlsrv_53_nts_vc9.dll</p>
</td>
<td>
<p>5.3.*</p>
</td>
<td>
<p>no</p>
</td>
<td>
<p>php5.dll</p>
</td>
</tr>
<tr>
<td>
<p>php_sqlsrv_53_ts_vc6.dll</p>
</td>
<td>
<p>5.3.*</p>
</td>
<td>
<p>yes</p>
</td>
<td>
<p>php5ts.dll</p>
</td>
</tr>
<tr>
<td>
<p>php_sqlsrv_53_ts_vc9.dll</p>
</td>
<td>
<p>5.3.*</p>
</td>
<td>
<p>yes</p>
</td>
<td>
<p>php5ts.dll</p>
</td>
</tr>
<tr>
<td>
<p>php_sqlsrv_52_nts_vc6.dll</p>
</td>
<td>
<p>5.2.*</p>
</td>
<td>
<p>no</p>
</td>
<td>
<p>php5.dll</p>
</td>
</tr>
<tr>
<td>
<p>php_sqlsrv_52_ts_vc6.dll</p>
</td>
<td>
<p>5.2.*</p>
</td>
<td>
<p>yes</p>
</td>
<td>
<p>php5ts.dll</p>
</td>
</tr>
</tbody>
</table>
<p style="line-height: 18px; "></p>
<p style="line-height: 18px; ">Copy the chosen file to the PHP extensions directory. By default it is C:\PHP\ext. If you're not sure, check the "extension_dir" parameter in the php.ini file.</p>
<p style="line-height: 18px; ">To load the sqlsrv dirver, add the following line to the php.ini (if you're using other version of driver, adjust the setting accordingly):</p>
<p style="line-height: 18px; "></p>
<div class="preformatted"><div class="preformattedContent" style="font-size: 12px; ">extension=php_sqlsrv_53_nts_vc9.dll</div></div>
<p style="line-height: 18px; ">Also, you would need to install&nbsp;<a href="http://www.microsoft.com/en-us/download/details.aspx?id=8328" target="">Microsoft Visual C++ 2010 SP1 Redistributable Package (x86)</a>&nbsp;on the web server.</p><p><span style="line-height: 18px; ">Restart the web server.</span></p>
<p style="line-height: 18px; ">To determine whether the driver has been successfully loaded,&nbsp;<a href="http://www.web-site-scripts.com/knowledge-base/article/AA-00616/0" target="" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-color: initial; border-image: initial; outline-style: none; outline-width: initial; outline-color: initial; border-style: initial; ">run a script that calls phpinfo()</a>.</p>
<p style="line-height: 18px; ">Search for "sqlsrv" on that page (use Ctrl-F shortcut in your browser). If sqlsrv driver is installed correctly, you should see something like this:</p>
<p style="line-height: 18px; "><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00718/sqlsrv.png" alt="" title="" width="660" height="164" border="0" hspace="0" vspace="0" align="" style="margin: 0px; border-width: 0px; "><br></p>
<p style="line-height: 18px; ">Microsoft SQL Server 2008 R2 Native Client must also be installed on the server on which PHP is running. To download and install SQL Server 2008 R2 Native Client now, click on the link below that matches the Windows edition on the web server:</p>
<p style="line-height: 18px; "></p>
<p style="line-height: 18px; "></p>
<ul style="list-style-type: none; "><li><span style="line-height: 16px; "><a href="http://go.microsoft.com/fwlink/?LinkID=188400&amp;clcid=0x409" target="_blank" rel="nofollow" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-color: initial; border-image: initial; outline-style: none; outline-width: initial; outline-color: initial; border-style: initial; ">Download the x86 package</a></span></li><li><span style="line-height: 16px; "><a href="http://go.microsoft.com/fwlink/?LinkID=188401&amp;clcid=0x409" target="_blank" rel="nofollow" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-color: initial; border-image: initial; outline-style: none; outline-width: initial; outline-color: initial; border-style: initial; ">Download the x64 package</a></span></li></ul>
<p></p>
]]></description>
                                    <pubDate>Fri, 25 May 2012 13:18:52 +0000</pubDate>
                                    <guid>https://www.web-site-scripts.com/knowledge-base/article/AA-00720</guid>
                    </item>
                <item>
                        <title>PHP drivers for Microsoft SQL (Windows 2008/2012/7/8 + IIS7/IIS7.5/IIS8)</title>
                                    <link>https://www.web-site-scripts.com/knowledge-base/article/AA-00718</link>
                                    <description><![CDATA[<p></p>
<p>KMP uses Microsoft's SQLSRV driver (PHP extension), to connect to a MSSQL database. This guide explains how to install this driver on Windows.</p>
<h3>Supported PHP versions:</h3>
<ul style="list-style-type: none; "><li>PHP v5.4.32</li><li><span style="line-height: 16px; ">PHP v5.5.16+</span></li><li><span style="line-height: 16px; ">PHP v5.6.4+</span></li></ul><p>PHP v7.* in not supported.</p><p>If you do not have PHP installed yet, follow this guide:&nbsp;<a href="ARTICLE_URL#456##AA-00495#" target="">PHP installation on IIS7, IIS7.5, and IIS8</a>.
</p><h3>Installation</h3>
<p></p>
<p style="line-height: 18px; "></p>
<p><span style="line-height: 18px; ">Download the</span>&nbsp;<span style="background-color: rgb(255, 255, 255); "><b>SQLSRV32.EXE</b> file from</span>&nbsp;<a href="http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;id=20098" target="_blank" style="line-height: 18px; ">the official Microsoft website</a>.</p>
<p style="line-height: 18px; ">Double click on the downloaded file. It is a self-extracting archive. It will ask you where to extract the files. Use a temporary target folder for this, you would need only one of the extracted files.</p>
<p style="line-height: 18px; ">Check the extracted files. You need the php_sqlsrv_XX_nts.dll file, where XX is your PHP version, e.g. for PHP v5.6 Non Thread Safe you would need this driver:</p>
<p style="line-height: 18px; "></p>
<div class="preformatted"><div class="preformattedContent" style="font-size: 12px; ">php_sqlsrv_56_nts.dll<br></div></div>
<p style="line-height: 18px; ">Copy the driver file to the PHP extensions directory. If you're not sure, check the "extension_dir" parameter in the php.ini file.</p>
<p style="line-height: 18px; "></p>

<p style="line-height: 18px; ">To load the sqlsrv dirver, add the following line to the php.ini (adjust the name if needed):</p>
<p style="line-height: 18px; "></p>
<div class="preformatted"><div class="preformattedContent" style="font-size: 12px; ">extension=php_sqlsrv_56_nts.dll</div></div>
<p style="line-height: 18px; ">Also, you would need to install the following packages from Microsoft on the web server:</p><p></p><ul style="line-height: 18px;"><li><a href="http://www.microsoft.com/en-us/download/details.aspx?id=8328" target="" style="line-height: 18px;">Microsoft Visual C++ 2010 SP1 Redistributable Package (x86)</a></li><li><a href="https://www.microsoft.com/en-us/download/details.aspx?id=40784" target="">Microsoft Visual C++ Redistributable Packages for Visual Studio 2013</a></li></ul><div><p><span style="line-height: 18px;">You would need to download the "vcredist_x86.exe" file from both pages, launch it and complete the installation.</span><span style="line-height: 18px;"></span></p><p style="line-height: 18px;">Install the ODBC Driver. Download x86 or x64 depending on your Windows edition.</p><p><span style="line-height: 18px;"></span></p><p style="line-height: 18px;"></p><ul><li><a href="https://www.microsoft.com/en-us/download/details.aspx?id=36434" target="">Microsoft® ODBC Driver 11 for SQL Server®</a></li></ul><p></p><span style="line-height: 18px;"></span></div><p></p>
<p><span style="line-height: 18px; ">Restart the web server.</span></p>
<p style="line-height: 18px; ">To check if the driver has been successfully loaded,&nbsp;<a href="http://www.web-site-scripts.com/knowledge-base/article/AA-00616/0" target="" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-color: initial; border-image: initial; outline-style: none; outline-width: initial; outline-color: initial; border-style: initial; ">run a script that calls phpinfo()</a>.</p>
<p style="line-height: 18px; ">Search for "sqlsrv" on that page (use Ctrl-F shortcut in your browser). If sqlsrv driver is installed correctly, you should see something like this:</p>
<p style="line-height: 18px; "><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00718/sqlsrv.png" alt="" title="" width="660" height="164" border="0" hspace="0" vspace="0" align="" style="margin: 0px; border-width: 0px; "><br></p>
<p style="line-height: 18px; "><br></p>
<p></p>
]]></description>
                                    <pubDate>Mon, 23 Apr 2012 16:45:13 +0000</pubDate>
                                    <guid>https://www.web-site-scripts.com/knowledge-base/article/AA-00718</guid>
                    </item>
                <item>
                        <title>PHP drivers for MySQL (Linux)</title>
                                    <link>https://www.web-site-scripts.com/knowledge-base/article/AA-00717</link>
                                    <description><![CDATA[<p></p><p>You can use either mysqli or pdo_mysql PHP extension for connecting to the MySQL server. The instructions are simple, as follows.</p><p><div class="info">
<div class="infoHeader">Recommendation</div>
<div class="infoContent">
<p>
We strongly recommend to use mysqli extension because pdo_mysql has some unresolved issues at the moment.</p>
</div>
</div>
<h2>mysqli</h2></p><p style="font-size: 12px; color: rgb(0, 0, 0); "><span style="font-weight: normal;">The php_mysqli.so extension must be enabled inside of php.ini. In order to do this you need to find the php.ini file (typically located in /etc/php5/cgi/), and make sure you remove the comment (semi-colon) from the start of the line:</span></p><p style="font-size: 12px; color: rgb(0, 0, 0); "></p><div class="preformatted" style="color: rgb(0, 0, 0); "><div class="preformattedContent" style="font-size: 12px; "><span style="font-weight: normal;">extension=mysqli.so<br></span></div></div><p style="line-height: 18px; color: rgb(0, 0, 0); "><span style="font-weight: normal;">Then you need to save the php.ini and restart the Apache.</span></p><p style="line-height: 18px; color: rgb(0, 0, 0); "></p><h2>pdo_mysql</h2><p style="line-height: 18px; color: rgb(0, 0, 0); "></p><p style="font-size: 12px; color: rgb(0, 0, 0); "><span style="font-weight: normal;">PDO and PDO MySQL extensions must be enabled inside of php.ini. In order to do this you need to find the php.ini file (typically located in /etc/php5/cgi/), and make sure you remove the comment (semi-colon) from the start of the line:</span></p><p style="font-size: 12px; color: rgb(0, 0, 0); "></p><div class="preformatted" style="font-family: Courier; font-size: 12px; color: rgb(0, 0, 0); "><div class="preformattedContent" style="font-size: 12px; "><p><span style="font-weight: normal;">extension=pdo.so<br></span></p><p><span style="font-weight: normal;">extension=pdo_mysql.so</span></p></div></div><p style="line-height: 18px; color: rgb(0, 0, 0); "></p><p style="line-height: 18px; color: rgb(0, 0, 0); "></p><p style="line-height: 18px; color: rgb(0, 0, 0); "></p><h1><span style="color: rgb(0, 0, 0); font-weight: normal; font-size: 12px; ">Then you need to save the php.ini and restart the Apache.</span></h1><p></p>]]></description>
                                    <pubDate>Mon, 23 Apr 2012 16:42:35 +0000</pubDate>
                                    <guid>https://www.web-site-scripts.com/knowledge-base/article/AA-00717</guid>
                    </item>
                <item>
                        <title>PHP drivers for MySQL (Windows)</title>
                                    <link>https://www.web-site-scripts.com/knowledge-base/article/AA-00716</link>
                                    <description><![CDATA[<p></p><p>You can use either mysqli or pdo_mysql PHP extension for connecting to the MySQL server. The instructions are simple, as follows.</p><p><div class="info">
<div class="infoHeader">Recommendation</div>
<div class="infoContent">
<p>
We strongly recommend to use mysqli extension because pdo_mysql has some unresolved issues at the moment.
</p>
</div>
</div>
<h2>mysqli</h2></p><p style="line-height: 18px; ">The php_mysqli.dll DLL must be enabled inside of php.ini. In order to do this you need to find the php.ini file (typically located in c:\php), and make sure you remove the comment (semi-colon) from the start of the line:</p><p style="line-height: 18px; "></p><div class="preformatted"><div class="preformattedContent" style="font-size: 12px; ">extension=php_mysqli.dll<br></div></div><p style="line-height: 18px; ">Then you need to save the php.ini and restart the web server.</p><p style="line-height: 18px; "></p><h2>pdo_mysql</h2><p style="line-height: 18px; ">The php_pdo_mysql.dll DLL must be enabled inside of php.ini. In order to do this you need to find the php.ini file (typically located in c:\php), and make sure you remove the comment (semi-colon) from the start of the line:</p><p style="line-height: 18px; "></p><div class="preformatted"><div class="preformattedContent" style="font-size: 12px; ">extension=php_pdo_mysql.dll<br></div></div><p style="line-height: 18px; ">Then you need to save the php.ini and restart the web server.</p><p></p>]]></description>
                                    <pubDate>Mon, 23 Apr 2012 16:42:16 +0000</pubDate>
                                    <guid>https://www.web-site-scripts.com/knowledge-base/article/AA-00716</guid>
                    </item>
                
    </channel>
</rss>