Xampp SQL server 2014 PHP 7.1.9

0

I have a xampp running with PHP 7.1.9. I use the sql server 2014.

But now I need the drivers for PHP. I can only find a version that supports 5.5, 5.6 ...

( link )

Is there a way to let this work with PHP 7.1.9?

    
asked by David HV 27.09.2017 в 10:08
source

2 answers

1

There is no option to change the PHP version in XAMPP.

XAMPP is encoded with a specific version of PHP to ensure that all modules are compatible and work correctly.

However, if your project needs PHP 5.6, you only have to install an earlier version of XAMPP with PHP 5.6 packaged in it.

    
answered by 27.09.2017 в 11:21
1

You should use PDO without the need for the php drivers using the following connecction string:

$Server='Miservidor';
$Database='Mibasedatos';
$Uid='usuename';
$Pwd='contraseña';
$conn = new PDO('odbc:Driver=;Server='.$Server.';Database='.$Database.';Uid='.$Uid.';Pwd='.$Pwd.';');
    
answered by 27.09.2017 в 14:04