Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Navodila: https://learn.microsoft.com/en-us/iis/application-frameworks/install-and-configure-php-on-iis/install-the-sql-server-driver-for-php

...

1. Preneseš datoteko php driver(SQLSRV510.zip)

https://go.microsoft.com/fwlink/?linkid=2199011

...

2. Preneseš in namestiš ODBC driver(msodbcsql.msi)

https://learn.microsoft.com/en-us/sql/connect/odbc/download-odbc-driver-for-sql-server

3.1 Izbereš pravilno php datoteko(v imenu datoteke so pogoji) glede na verzijo in glede na thread safe(ts) ali non thread safe(nts)

https://stackoverflow.com/questions/1623914/what-is-thread-safe-or-non-thread-safe-in-php

pri meni je to php_sqlsrv_74_ts_x64.dll ker imam verzijo 7.4(74) in thread safe(ts) in 64 bitno(x64)

3.2 Preneseš datoteko iz koraka 1. v namestitveno pot php in podmapo ext, pri meni je to:

C:\xampp\php\ext

4. spremeniš php.ini tako da dodaš vrstico

pri meni se php.ini nahaja na:

C:\xampp\php

nekam v ini file dodaš spodnjo vrstico:

Extension=php_sqlsrv_74_ts_x64.dll

ime datoteke je tak kot datoteka ki si jo prenesel v php\ext mapo

5. Resetiraš apachee in deluje.