我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

php在命令行中设置ini

On the Linux command line, is it possible to run a command to get a php ini settings value?

I understand that i can echo phpinfo() or simply go and inspect the ini file, but I cant see a command to run that will display the value directly on the command line.

php -i | grep 'my_value'

or

php -r "echo ini_get('my_value');"

or

grep 'my_value' /path/to/php.ini

近期文章

  • 为CRUD构建自定义函数
  • 无效参数和非法偏移
  • 具有多个文件的URL重定向
  • 更新记录时面临的问题
  • 自定义树枝功能无法识别
  • 跨域共享php会话
  • Html集体形式的解释
  • php将输出传递给变量
  • 从.php编辑.text的chmod是什么
  • mp3到服务器端flv怎么样?
  • PHP foreach定位特定项目
  • SASS编译器无法从exec运行
  • 如何在Magento中对我的类别进行排序
  • 根据所选复选框进行过滤
  • mySQL和memcached用于PHP会话?
  • PHP为什么在源代码中使用换行符[关闭]
  • 使用AWS SES和PHP发送电子邮件
  • PHP APC以原子方式获取和设置值
  • 外部服务器codeigniter代码php
  • 用于url重写的htaccess中的base64?

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华