【发布时间】:2011-09-17 20:51:27
【问题描述】:
在我的本地主机上,这段代码运行良好:
$im = imagecreatefrompng('BBcode.png');
但是当我在服务器中使用相同的代码时
$im = imagecreatefrompng('http://lazertag.elitno.net/drupal/BBcode.png');
我收到以下错误:
警告: imagecreatefrompng(http://lazertag.elitno.net/drupal/BBcode.png) [function.imagecreatefrompng]:无法打开流:HTTP 请求 失败的! HTTP/1.1 403 禁止在 /www/elitno.net/l/a/lazertag/home/site/drupal/renderImage.php 上线 46
我该如何解决这个问题?
【问题讨论】:
-
HTTP request failed! HTTP/1.1 403 Forbidden很清楚,不是吗?
标签: php image-processing gd imagecreatefrompng