level 1
<?php$im=imagecreate(200,100);$white=imagecolorallocate($im,130,200,122);imagegif($im);?>
GIF87adz,dڋH扦ʶL ĢL*̦JԪjܮN (8HXhx)9IYiy*:JZjz +;K[k{, 这是乱码,网页显示结果!
2013年04月08日 02点04分
1
level 1
大家给看看吧,就这么个小问题,希望大神解决下,谢谢!!!
2013年04月08日 02点04分
2
level 10
图片格式有设置没
header("content-type:image/png")
2013年04月08日 13点04分
4
level 2
//这里不要有空白
<?php
//这里不要有输出
header('content-type:image/gif');
//这里也不要有输出
imagegif();
?>
-------嗨嗨,大家好!我是黄图哥!!!
2013年07月24日 12点07分
6
level 1
鄙视下这个分类的管理员,下面的回答都文不对题还推荐个球。
你这个是因为你的代码出错了
生成画布实际上是二进制操作,有任何输出都会显示为乱码,所以只能包含PHP代码,那个<html>那些标记全部删除掉
<?php
$mi=imagecreate(200,60);
$white=imagecolorallocate($mi,225,66,159); //你就是这一行的变量$mi写成$im
imagegif($mi)
?>
2021年04月13日 09点04分
7