-1

这是问题所在:

我的网站有一个第 3 方脚本...我从 enom.com 购买了主机(我希望这不会冒犯任何人)

我安装了脚本并且效果很好,除非我尝试从其他网站导入 rss 提要。

它正在导入 xml 文件,但图像除外。url路径正确,图片存在....

试图找出问题所在,我在我的电脑上安装了“wamp”,从我的电脑上安装了脚本和本地主机,导入 xml 工作正常,它下载图片并将其添加到数据库 + 文件夹中

我认为这是一个托管问题,我想解决它,谁能指出我在哪里看?

托管计划使用 PHP 支持作为 FastCgi 应用程序(php 安全模式开启)本地主机上的“服务器 API CGI/FastCGI”我在 apache“服务器 API Apache 2.0 处理程序”上有 php 支持

谢谢你!

4

1 回答 1

0

the answer is very simple, change the hosting company, or pay attention when you place your order. It's related to allow_url_fopen setting which caused the problem. in my case i couldn't modify the php.ini file because this was the hosting company policy... however php.ini can be "bypassed" or modified for each php file by calling the "ini_set" php function which is available for php4/php5 engines... here's an example

ini_set("allow_url_fopen", 1);
if (ini_get("allow_url_fopen") == 1) {
echo "allow_url_fopen is ON";
} else {
echo "allow_url_fopen is OFF";
}
print ini_get("allow_url_fopen"); 

and it didn't work for me, because of the hosting company policy...

it can be also "bypassed" or modified by adding one simple line to .htaccess file

php_value allow_url_fopen On

but again, this wasn't an option for me...

CONCLUSION: pay attention when you purchase hosting packages!!!

As for those who can't understand when you can't paste your code as an example because is under specific license and it also encrypted with ioncube, before you post comments sit back and think before you act / or simply do something else...

于 2013-11-10T23:01:08.043 回答