如何在某些特定页面中禁用默认的php功能?

时间:2015-03-22 06:53:04

标签: php security

我知道我可以在php.ini配置文件中使用disable_functions指令来禁用整个网站中的一些默认PHP函数(例如fopen(),rename,ftp_chdir()...... ..)。

disable_functions
disable_functions =”function a, function b, …………. function (n)”

有一个问题,如果我想要一些函数可以在a.php中运行但不能在b.php和c.php中运行,这意味着我想在某些特定页面中阻止该函数,我该怎么办呢?

0 个答案:

没有答案