Salaheddine Radi
Salaheddine Radi

Reputation: 31

what is the difference between Loaded Configuration File displayed in "phpinfo()" and the other diplayed with command "php --ini"

I use wamp server and windows 10 OS, When i see the phpinfo() information, it shows Loaded Configuration File Which is different than Loaded Configuration File displayed when i run php --ini command.

phpinfo() : enter image description here

php --ini enter image description here

It's normal to have loaded files are not the same?

And how can i change my Loaded Configuration File?

Thank you in advance

Upvotes: 0

Views: 757

Answers (1)

Motxila dev
Motxila dev

Reputation: 99

php --ini is the cli version of php.ini

phpinfo is the php.ini from the webserver

there is a reason that these are separated. Most of the times you want more privileges on one or the other.

to change the version, left click (1 time) system tray wamp icon > php >version And select your wanted version. It might give errors but if you really need you might copy one php.ini to the other, but i really advice against this.

Hope this helps

Upvotes: 1

Related Questions