如何在.htaccess或php文件中设置变量'allow_url_fopen'? [英] How can I set variable 'allow_url_fopen' in .htaccess or php file?
本文介绍了如何在.htaccess或php文件中设置变量'allow_url_fopen'?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在.htaccess
或PHP文件中打开allow_url_fopen
?
How can I turn on allow_url_fopen
in .htaccess
or a PHP file?
推荐答案
You can't, it can only be set in php.ini (see the docs), unless you're using a version of PHP <= 4.3.4.
如果您使用的是PHP的确实很旧的版本(并且您不应该使用),则可以使用 ini_set
.
If you're using a really old version of PHP (and you shouldn't be) then you can set it in PHP using ini_set
.
这篇关于如何在.htaccess或php文件中设置变量'allow_url_fopen'?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文