Avatar of Marthaj
Marthaj
Flag for United States of America

asked on 

Upgrading form PHP 5.6 tp PHP 7.0 and MS SQL Drivers

I am currently upgrading some app from PHP 5.6 to PHP 7.4. My environment is: Wampserver 32, Apache2.4.41, localhost (port 81) on Windows 10 (just until my ubuntu desktop 20,4 is properly installed)'
I had stopped all services, clicked on PHP 7.04, then restarted all  services.
I executed PHPInfo() and everything looks good except I do not have any listing for MS SQL Server.
 I checked the extensions section in the PHP.ini file and this is what it shows:

;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;

; If you wish to have an extension loaded automatically, use the following
; syntax:
;
;   extension=modulename
;
; For example:
;
;   extension=mysqli
;
; When the extension library to load is not located in the default extension
; directory, You may specify an absolute path to the library file:
;
;   extension=/path/to/extension/mysqli.so
;
; Note : The syntax used in previous PHP versions ('extension=<ext>.so' and
; 'extension='php_<ext>.dll') is supported for legacy reasons and may be
; deprecated in a future PHP major version. So, when it is possible, please
; move to the new ('extension=<ext>) syntax.
;
; Notes for Windows environments :
;
; - Many DLL files are located in the extensions/ (PHP 4) or ext/ (PHP 5+)
;   extension folders as well as the separate PECL DLL download (PHP 5+).
;   Be sure to appropriately set the extension_dir directive.
;
extension=bz2
extension=curl
;extension=dba
extension=com_dotnet
;extension=enchant
;extension=ffi
extension=fileinfo
;extension=ftp
extension=gd2
extension=gettext
extension=gmp
extension=intl
extension=imap
extension=ldap
extension=mbstring
extension=exif      ; Must be after mbstring as it depends on it
extension=mysqli
;extension=oci8_12c  ; Use with Oracle Database 12c Instant Client
;extension=odbc
extension=openssl
;extension=pdo_firebird
extension=pdo_mysql
;extension=pdo_oci
;extension=pdo_odbc
;extension=pdo_pgsql
extension=pdo_sqlite
;extension=pgsql
;extension=phpdbg_webhelper
;extension=shmop

; The MIBS data available in the PHP distribution must be installed.
; See http://www.php.net/manual/en/snmp.installation.php
;extension=snmp

extension=soap
extension=sockets
;extension=sodium
extension=sqlite3
;extension=sysvshm
;extension=tidy
extension=xmlrpc
extension=xsl
;extension=zend_test

Open in new window

The pathing to PHP7.4 in the php.ini file is correct.
extension_dir ="c:/wamp/bin/php/php7.4.0/ext/"

Open in new window

I also displayed the php extensions from within Wampserver. I see curl and sqllite and etc, But nothing I recognize for MS SQL Server. Andam wondering also about the construction of making my MS SQl DB connection, 
What am I missing and what do I need to do to correct this ??
Any help is appreciated and thank you in advance.



PHPMicrosoft SQL Server

Avatar of undefined
Last Comment
Scott Fell

8/22/2022 - Mon