我是新的使用PHP与图像。 我已经找到了代码,显示图像图片不显示在php
<<?php
// Create a blank image and add some text
$im = imagecreatetruecolor(120, 20);
$text_color = imagecolorallocate($im, 233, 14, 91);
imagestring($im, 1, 5, 5, 'A Simple Text String', $text_color);
// Save the image as 'simpletext.jpg'
imagejpeg($im);
// Free up memory
imagedestroy($im);
?>>
但Firefox表现出一些虚假的代码,而不是说Image.here是将图像的链接,火狐显示 http://tinypic.com/r/htw6cm/7 这里是链接到图片
因为它的localhost你手动尝试打开图像? –
是的很明显,它打开好 – Sharpzain120
你可能发送错误的标题。您必须发送带有jpeg图像的'Content-Type:image/jpg'。 – JJJ