Anton
Anton

Reputation: 663

php.ini reload in php-cli

I have php script that must be runned from console (php-cli). But configuration of php.ini for php-cli was incorrect. I fix it, but when I run script a had error with php config, because php.ini uses an old.

How I can reload php.ini for console without restart server?

Upvotes: 66

Views: 57879

Answers (1)

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 798606

The configuration is loaded fresh each time you invoke PHP from the CLI.

Upvotes: 148

Related Questions