在 php-cli 中重新加载 php.ini
我有必须从控制台(php-cli)运行的 php 脚本。但是 php-cli 的 php.ini 配置不正确。我修复了它,但是当我运行脚本时,php 配置出现错误,因为 php.ini 使用旧的。
如何在不重新启动服务器的情况下重新加载控制台的 php.ini?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
每次从 CLI 调用 PHP 时都会重新加载配置。
The configuration is loaded fresh each time you invoke PHP from the CLI.