Hi,
this is a fresh install of Windows Server 2012 where I used 'MS Web Plataform Installer' to install PHP (after I installed mannualy the 'Visual C++ Redistributable for Visual Studio 2012 Update 4'). The PHP is working and then I installed the MS SQL
2012 Express, I already set up the MSSQL TCP properties to connect by IP address since I´m able to connect using .ASP files.
<% Set cn = Server.CreateObject("ADODB.Connection") cn.Open "Provider=SQLOLEDB;Server=192.168.100.22;Database=ruedb;UID=sa;PWD=sql20015;" cn.CommandTimeout = 900 cn.Close Response.write("Connected Successfully") %>
I already download the 'Microsoft Drivers 3.0 for PHP for SQL Server' from 'http://www.microsoft.com/en-us/download/details.aspx?id=20098' and then extracted to 'C:\Program Files (x86)\PHP\v5.6\ext'. Now I need to set up the PHP to stablish communication with that DB.
<?php $link = mssql_connect('192.168.100.22', 'sa', 'sql20015'); if(!$link) { echo'Could not connect'; die('Could not connect: ' . mssql_error()); } echo'Successful connection'; mssql_close($link); ?>
but shows the following msg:
Fatal error: Call to undefined function mssql_connect() in C:\inetpub\wwwroot\rue103\testedb.php on line 2
The installer of the app show the following:
SQL Server (SQLSRV): NOT AVAILABLE (See http://www.php.net/manual/en/ref.pdo-sqlsrv.php)
My current PHP.INI call this extensions:
[ExtensionList] extension=php_curl.dll extension=php_exif.dll extension=php_gd2.dll extension=php_gettext.dll extension=php_imap.dll extension=php_mbstring.dll extension=php_mysql.dll extension=php_mysqli.dll extension=php_openssl.dll extension=php_pdo_mysql.dll extension=php_pdo_sqlite.dll extension=php_pdo_sqlsrv_54_nts.dll extension=php_soap.dll extension=php_sqlsrv_54_nts.dll extension=php_tidy.dll extension=php_xmlrpc.dll
>>> Should I install anything else?
>>> Does anyone have idea about the development enviroment (Visual Studio vXYZ) of these .DLLs?