I took a closer look and found that the php.ini that comes with mac does indeed have such a section
; If you wish to have an extension loaded automatically, use the following ; syntax: ; ; extension=modulename.extension ; ; For example, on Windows: ; ; extension=msql.dll ; ; ... or under UNIX: ; ; extension=msql.so ; ; ... or with a path: ; ; extension=/path/to/extension/msql.so ; Now only Just change the suffix dll to .so and it’s done
The PHP.ini configuration file is in the wrong location, only the extension suffix on windows is .dll
On linux and mac it’s .so
phpinfo(); take a look at loadphpini
Is there a dll suffix on mac?
The wrong file should be corrected.
These extensions are compiled into PHP
I took a closer look and found that the php.ini that comes with mac does indeed have such a section
; If you wish to have an extension loaded automatically, use the following
; syntax:
;
; extension=modulename.extension
;
; For example, on Windows:
;
; extension=msql.dll
;
; ... or under UNIX:
;
; extension=msql.so
;
; ... or with a path:
;
; extension=/path/to/extension/msql.so
;
Now only Just change the suffix dll to .so and it’s done
This item is the actual loaded configuration file