I developed a PHP Website and backend is MS SQL 2012 and I used XAMPP as my development web server. If my website is intranet used it totally works such as connecting to database but when I hosted it to
1an1.com, it gives me this error:
Call to undefined function sqlsrv_connect() in dbconn.php on line 9.
Here's my database connection:
<?php
$serverName='xxx.xxx.00.xx';
$connectionInfo=array(
'Database'=>'DBName',
'UID'=>'userName',
"PWD"=>'Password');
$conn = sqlsrv_connect($serverName,$connectionInfo);
if($conn){
}else{
die(print_r(sqlsrv_errors(),TRUE));
}
?>
Actually, I'm confused what to use.. like,should I use IIS here or other procedures but for development, I used XAMPP to test my website.
Or is it possible to use XAMPP here? for connecting my web hosted php website and my ms sql database?
I'm new with this kind of stuff, so if you can provide me some step by step articles for this is much more appreciated.
Thanks in advance