如何在.htaccess中启用escapeshellarg()这是可能的

我应该在.htaccess中启用这个php函数escapeshellarg()。 出于某些安全原因,此php函数位于服务器的php.ini中的禁用列表中。 </ p>

所以请建议我如何从.htaccess文件中启用它。 或者给我替代解决方案。</ p>
</ div>

展开原文

原文

shall i enable this php function escapeshellarg() in .htaccess . This php function is in the disable list in php.ini of the server for some security reasons.

So please suggest that how shall i enable it from the .htaccess file. or give me alternative solutions.

1个回答



您无法覆盖 .htaccess </ code>文件中的 disable_functions </ code>作为此设置 是仅PHP_INI_SYSTEM </ code>。</ p>

你可以编写自己的 escapeshellarg()</ code>,但如果禁用它, exec( )</ code>和 system()</ code>可能也是,所以这有点无意义。</ p>

你可能在共享服务器上,需要去 无论是VPS还是Dedicated都可以设置你自己的PHP配置。</ p>
</ div>

展开原文

原文

You can't override disable_functions in a .htaccess file as this setting is PHP_INI_SYSTEM only.

You could write your own flavour of escapeshellarg() but if this is disabled, exec() and system() are probably too, so this is a bit pointless.

You probably are on a shared server and would need to go either VPS or Dedicated to set your very own PHP configuration.

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问