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

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

问题描述

我调查,设置我的错误日志记录选项的最佳地点,它似乎是最可靠的地方是在.htaccess脚本子目录。但是,这个特殊的脚本通过cron通过命令行运行,因此。

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影响未通过Web服务器运行脚本php_value设置?

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天全站免登陆