我在google应用引擎上遇到了fopen()的问题。正常工作3-4次,并比此响应从服务器。
消息: fopen(name.png):未能打开流:连接已关闭。
知道怎么排除发生的事情吗?为什么?
$image = "https://website_url/image_name.png";
$f = fopen($image,'rb');php有allow_url_fopen = On
发布于 2017-12-06 23:56:22
首先,确保你有正确的路径。您需要给fopen文件的完整路径,而且您根本不需要chdir()。试试这个版本:
$path_to_file='url';$fh = fopen($path_to_file.$filename,'w')或模(‘许可错误’);
https://stackoverflow.com/questions/47685224
复制相似问题