• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Codeigniter and Docker MS SQL Server on Mac

#1
Hey everyone,

I have a Codeigniter site and I'm trying to connect it to a MS SQL Server I set up with Docker on my MacOS.

Does anybody have experience doing this? 

I've looked at a bunch of articles on how to do this but it's not working for me. 

In particular, I've tried following the instructions here: https://www.microsoft.com/en-us/sql-serv...ed/php/mac 

I get stuck on step 2.3 where it says to run connect.php in your terminal. 

The error I can't get away from is: 


Quote:Error: Call to undefined function sqlsrv_connect() in /Users/ryanmartin/Local Sites/docker_php/connect.php on line 10



php -v and pecl version both output PHP 7.3.8 

My PEAR version is 1.10.9. 

I also have brew and sql commands for my command line all installed. 

I just cannot for the life of my connect a PHP project to a MS SQL Server with my Mac. 

Any help would be greatly appreciated. 

Sorry if this is the wrong place to post this. This is my first post.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.