.htaccess php_value设置是否影响在命令行运行的脚本? [英] Do .htaccess php_value settings affect scripts run at command line?

查看:159
本文介绍了.htaccess php_value设置是否影响在命令行运行的脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在调查设置我的错误日志记录选项的最佳位置,它似乎最可靠的地方是.htaccess在脚本子目录。

I'm investigating the best place to set my error logging options, and it seems the most reliable place would be in .htaccess in the script subdirectory. But this particular script is run via cron, and therefore via command line.

.htaccess中做php_value设置会影响不通过Web服务器运行的脚本吗?

Do php_value settings made in .htaccess affect scripts that are not run through the web server?

推荐答案

不, .htaccess 文件只能从PHP httpd模块读取。

No, .htaccess files are only read from the PHP httpd module.

这篇关于.htaccess php_value设置是否影响在命令行运行的脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆