Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.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 在服务器配置中,http://wrapper被中的allow\u url\u fopen=0禁用_Php_Ssl_Copy_Fopen - Fatal编程技术网

Php 在服务器配置中,http://wrapper被中的allow\u url\u fopen=0禁用

Php 在服务器配置中,http://wrapper被中的allow\u url\u fopen=0禁用,php,ssl,copy,fopen,Php,Ssl,Copy,Fopen,php.ini文件的“allow_url_fopen”属性为“On”。但是在“copy()”函数中,我得到了这个错误 “[14-Aug-2017 08:42:29 UTC]PHP警告:copy():http://wrapper在服务器配置中被第3行/home/timforkl/public\u html/test.PHP中的allow_url\u fopen=0禁用 [14-Aug-2017 08:42:29 UTC]PHP警告:copy():未能打开流:在第3行的/home/timforkl/

php.ini文件的“allow_url_fopen”属性为“On”。但是在“copy()”函数中,我得到了这个错误

“[14-Aug-2017 08:42:29 UTC]PHP警告:copy():http://wrapper在服务器配置中被第3行/home/timforkl/public\u html/test.PHP中的allow_url\u fopen=0禁用 [14-Aug-2017 08:42:29 UTC]PHP警告:copy():未能打开流:在第3行的/home/timforkl/public_html/test.PHP中找不到合适的包装器”

test.php►

if(copy("http://mitforklift.com/dealers/shared/images/imglib/ESDN3-34SHEETPRODUCT-PAGE-01-S.jpg","gok.jpg")){
echo 'sa';
}
else{
echo'as'; }

必须重新启动服务器机器或服务才能重新加载php.ini文件。

必须重新启动服务器机器或服务才能重新加载php.ini文件