ncurran217 Posted May 2, 2013 Share Posted May 2, 2013 I am moving my site and database to a new server. The configuration is nearly the same except the new server is 64bit. I can connect to the database remotely with the username and password that I have in my php code to connect. Here is my database connect code: <?php $serverName = 'Nick_C_Desktop\SQLEXPRESS'; $connectionInfo = array('Database'=>'CSLogs', 'UID'=>'cslogslogin', 'PWD'=>'123456'); $connection = sqlsrv_connect($serverName, $connectionInfo); ?> This code worked perfectly fine on my old server, but gives me this error: Fatal error: Call to undefined function sqlsrv_connect() in C:\wamp\www\cslogs\includes\db_connect.php on line 4 I have these two items in my php.ini file enabled: extension=php_pdo_sqlsrv_53_ts.dll extension=php_sqlsrv_53_ts.dll Which is what I had before. Using Wamp Server. PHP 5.3.13 all the same as before. What else am I missing that is not allowing this to connect to the SQL server. Thanks in advance! Quote Link to comment https://forums.phpfreaks.com/topic/277544-call-to-undefined-function-sqlsrv_connect/ Share on other sites More sharing options...
taquitosensei Posted May 2, 2013 Share Posted May 2, 2013 Did you install the php drivers? http://www.microsoft.com/en-us/download/details.aspx?id=20098 Quote Link to comment https://forums.phpfreaks.com/topic/277544-call-to-undefined-function-sqlsrv_connect/#findComment-1427808 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.