
在本机看自己做的网页时,为什么图片不能显示出来 图片是用php函数做出来的
<?php$image_width=500;$image_height=700;$image=imagecreate($image_width,$image_height...
<?php
$image_width=500;
$image_height=700;
$image=imagecreate($image_width,$image_height);
$back_color=imagecolorallocate($image,200,124,124);
header('Content-Type:image/jpeg');
imagejpeg($image);
imagedestroy($image);
?>
我这是用函数做的图像,不是现成的图像 展开
$image_width=500;
$image_height=700;
$image=imagecreate($image_width,$image_height);
$back_color=imagecolorallocate($image,200,124,124);
header('Content-Type:image/jpeg');
imagejpeg($image);
imagedestroy($image);
?>
我这是用函数做的图像,不是现成的图像 展开
2个回答
展开全部
你得程序写得没有问题,我在计算机上运行是能够正常显示图形。你在本机上有没有使用image函数生成图像成功得例子,如果有得话看看本机得GD2库有没有被关闭,因为image函数需要GD2库得支持,否则不能正常使用。如果没有成功过看看GD2库有没有安装或者有没有禁用什么得。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询