在我的本地主机此代码工作得很好:imagecreatefrompng()未能打开流:HTTP请求失败
$im = imagecreatefrompng('BBcode.png');
但是,当我在服务器
$im = imagecreatefrompng('http://lazertag.elitno.net/drupal/BBcode.png');
使用相同的代码,我得到了以下错误:
Warning: imagecreatefrompng(http://lazertag.elitno.net/drupal/BBcode.png) [function.imagecreatefrompng]: failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in /www/elitno.net/l/a/lazertag/home/site/drupal/renderImage.php on line 46
我该如何解决这个问题?
'HTTP请求失败! HTTP/1.1 403 Forbidden'很清楚,不是吗? –