php - problem in showing an img open from zip archive -
iam img date zip archive getfromindex() , date (this first line of text appearing)
‰png ��� ihdr���@���@���ªi
know how can makke appear iam used
$im = imagecreatefromstring($data); if ($im !== false) { header('content-type: image/png'); imagepng($im); imagedestroy($im); }
but did not worked , used
header('content-type: image/png'); imagepng($data); imagedestroy($im);
but did not worked , giving me warning: imagepng(): supplied argument not valid image resource
now asked me date format assume output is
$date = file_get_contents('http://sstatic.net/so/img/logo.png');
the text appear same format must use $date because must contents first
i suspect image data not output of script, right? must be.
Comments
Post a Comment