2

I'm trying to connect to microsoft sql express using php in my local machine ubuntu, the databse is in the server cloud, but I got this error :

A PHP Error was encountered

Severity: Error

Message: Call to undefined function sqlsrv_connect()

Filename: sqlsrv/sqlsrv_driver.php

Line Number: 144

Backtrace:

I'm using codeigniter framework, I've tried to search the solution but its not working for me on ubuntu, and only finding the solution for windows,

Is it possible to resolve this problem on my ubuntu 14.04, instead of switching Operating System?

NOTE : I'm using LAMP (XAMPP) in my local environment.

Gujarat Santana
  • 9,854
  • 17
  • 53
  • 75

2 Answers2

0

UPDATE
Finally After several years Now Microsoft had launch the sql server for Linux : you can find more about this in this link : https://learn.microsoft.com/en-us/sql/linux/sql-server-linux-setup

NOTE : I wish they could have done it before I was working on some project that depends on sql-server.

OLD
It looks like this is not possible to setup in ubuntu, for someone out there have same problem switching Operating system to Windows is the best choice for now.

Gujarat Santana
  • 9,854
  • 17
  • 53
  • 75
-1

You need to download the driver and must do couple of settings.

Have a look

Connect sqlsrv in Xampp

Community
  • 1
  • 1
safin chacko
  • 1,345
  • 1
  • 11
  • 18