0

I want to load some extensions, but my changes in the php.ini file do not have any effect. I have xampp installed on Windows and set extension_dir in php.ini to "C:\xampp\php\ext", which is where xampp installed my extensions. But when I call phpinfo(), extension_dir is shown as C:\php\ext which is not correct. Already verified that it's the correct php.ini and did some stop and start of apache. Also, I checked the loaded modules with get_loaded_extensions(), but my desired extension -mbstring etc- aren't displayed.

Any help is appreciated.

Michael
  • 1
  • 2
  • run `php -i` in a terminal and take a look at the beginning section which reads "Configuration File (php.ini) Path => /path/to/php/version" and "Loaded Configuration File => /path/to/php/version/php.ini" Are they correct? – Tobias F. Apr 05 '18 at 07:37
  • 1) Configuration file (php.ini) Path => C:\Windows 2) Loaded Configuration File => C:\xampp\php.ini so to me it seems 1) is not correct? There is no php.ini file in C:\Windows – Michael Apr 05 '18 at 07:46
  • And what about `Loaded Configuration File`? – Tobias F. Apr 05 '18 at 07:47

1 Answers1

0

Finally, it was an unexpected sign & somewhere else in the php.ini file. Found it by typing prompt php.

Michael
  • 1
  • 2