Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I use PHP's SQLSRV Functions?

Tags:

php

sql-server

I am starting a new project in PHP that need to access MS Sql Server.
I know that PHP's manual lacks of warns about old or even deprecated set of functions.

  • MySQL extension do not refer to MySQLi extension at any point.
  • SQLite extension do not refer to SQLite3 extension at any point.

So my question is: Am I OK using PHP's SQLSRV Functions? or they are not the state of the art? I did choose them because aparently they have MS support.

Please notice that I am not asking for a recomendation, just if what I choose is OK

like image 862
Luis Siquot Avatar asked Apr 20 '16 21:04

Luis Siquot


1 Answers

As I understand it the SQLSRV functions aren't actually PHP's per se since they are part of a package maintained by Microsoft outside the main PHP project. They are however one of the two best bets for working with MS SQL Server (PDO_SQLSRV being the other) since they are currently maintained.

They are both currently Windows only.

like image 194
acrosman Avatar answered Sep 22 '22 10:09

acrosman