How to connect with sql server using php in xampp -
How to connect with sql server using php in xampp -
i have xampp install in computer , xampp php version 5.5.15 want connect sql server (which install in computer sql server 2005) download php driver , re-create paste 2 php file "php_pdo_sqlsrv_55_ts.dll" , "php_sqlsrv_55_ts.dll" in "c:\xampp\php\ext" folder , format php.ini file extension=php_pdo_sqlsrv_55_ts.dll , extension="php_sqlsrv_55_ts.dll" problem when restart apache server (from xampp command panel) it's display 2 error message 1
httpd.exe error "http.exe error msvcp110.dll missing computer" 1 "xampp error php startup unable load dynamic library specific module not found" beside error trying connect sql server using code code homecoming undefined sqlsrv_connect function error
my code simple
<?php $servername='santunu23-pc\sqlexpress'; $connectioninfo=array ('database'=>'db2662_cslbeseelec'); $myuser='santunu23'; $conn=sqlsrv_connect($servername,$connectioninfo); if($conn) { echo 'connection established'; } else { echo 'can not create connection'; die(print_r(sqlsrv_errors(),true)); } ?>
what now?any suggestion scheme windows 7 32bit
you could've googled "msvcp110.dll", know file belongs "microsoft visual c++ 2012 redistributable package". download it, install it, seek again.
php sql xampp
Comments
Post a Comment