Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/278.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
切换托管公司PHP GET Script赢得';行不通_Php - Fatal编程技术网

切换托管公司PHP GET Script赢得';行不通

切换托管公司PHP GET Script赢得';行不通,php,Php,我将主机帐户从DreamHost切换到InMotion主机。。。我以前使用的脚本在DreamHost上运行良好,但由于切换,它创建了一个xml文件,但为空。有什么想法吗 <?php $xml = file_get_contents('ftp://USER:USER@aphrodite.WEB.net/exports/xml/products.xml'); file_put_contents('./pro_data/products.xml', $xml); ?> 我尝试了ph

我将主机帐户从DreamHost切换到InMotion主机。。。我以前使用的脚本在DreamHost上运行良好,但由于切换,它创建了一个xml文件,但为空。有什么想法吗

<?php 
$xml = file_get_contents('ftp://USER:USER@aphrodite.WEB.net/exports/xml/products.xml');
file_put_contents('./pro_data/products.xml', $xml);
?>


我尝试了php版本5.5-7.0,同样的事情。

在php.ini中添加了以下内容到文件并保存

allow_url_fopen=on

错误消息I get wrapper在服务器配置中被allow_url_fopen=0禁用听起来好像错误消息告诉您问题所在:PHP配置不允许打开远程url。“错误消息告诉您问题所在”想象一下!