禁用邮件功能在PHP通过.htaccess进行 [英] Disable mail functions in php BY .htaccess
问题描述
我想通过的.htaccess禁用邮件功能在PHP中扔出我所有的项目文件。我需要做的停止所有的电子邮件发送由系统在我的项目,以便有使用电子邮件()
函数在我的项目很多文件,所以没有办法禁用邮件功能
?我无法访问的php.ini
以更好地做的.htaccess
I want to disable mail functions in PHP by .htaccess throw-out my all project file. I need to do stop all e-mail that send by system in my project so there are many files that use mail()
function in my project so there is way to disable mail functions
? I can't access php.ini
so it better to do with .htaccess
在的.htaccess
我写这篇code,但不工作:
in .htaccess
i write this code but not work:
php_value disable_functions mail
这是没有工作,但任何其他方式的.htaccess
?
this is not worked but any other way to disable mail function by .htaccess
?
推荐答案
PHP配置指令
在的.htaccess
定义取决于服务器配置
。它可以禁用你的 Web服务器
。你可以把的php.ini
在您的网站根目录,并把这个指令。或者,你可以通过
PHP configuration directive
definition in .htaccess
depends on server configuration
. It can be disable on your webserver
. You can put php.ini
in your site root and put this directive. Alternatively, you can set this directive on application runtime by
ini_set('disable_functions','mail');
这篇关于禁用邮件功能在PHP通过.htaccess进行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!