0

MS SQL Server is my most familiar DBMS. I'm really new to PHP and I want to implement small in-house web application (for up to 10 clients), so I decided to use a PC with windows XP SP3 running EasyPHP as my web server.

I think CakePHP is the best approch for MVC web application unfortunately CakePHP supports MySQL out of the box.

Is it possible using CakePHP to connect the MS SQL???, I'm fine to upgrade to the new version of MS SQL.

Please advise. Thanks. Kongthap

4

1 回答 1

1

I am not very familiar with CakePHP, but I see two possible solutions here, which both requires that you install SqlSrv for PHP and SQL Server Native Client :

  1. Use PDO, SqlSrv provides a PDO driver for SQL Server. If CakePHP supports PDO, you will be able to use it to connect to your SQL Server
  2. Use this driver (if still supported by Cake)

Also, have a look at this question which seems to address the same kind of issue as yours.

于 2013-07-02T14:42:35.193 回答