【问题标题】:How can I set variable 'allow_url_fopen' in .htaccess or php file?如何在 .htaccess 或 php 文件中设置变量“allow_url_fopen”? 【发布时间】:2009-11-26 14:33:23 【问题描述】: 如何在.htaccess 或PHP 文件中打开allow_url_fopen? 【问题讨论】: 标签: php 【解决方案1】: 你不能,它只能在 php.ini 中设置(参见the docs),除非你使用的是 PHP 如果您使用的是非常旧的 PHP 版本(并且您不应该使用),那么您可以使用 ini_set 在 PHP 中进行设置。 【讨论】: