急急!!!!!,各位老鸟们,指点新手小弟吧! 1. header("Content-type: image/png");这句前面不要输出任何字符2. 是这样用的吗?<img src="xxxxx.php"> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 改一下浏览器设置就清楚错误了 查看→编码→gb2312 不行的话就改utf-8 我的header()前面没有输出语句呀!我在另一个html语句中,用<img src="xxx.php">,xxx.php就是画图的那个文件,也不行呀! 我在php.ini中设置字符集微gb2312 ,,,,和utf-8都没有效果呀!各位,再想想,加把劲呀!!! <?php header("Content-type: image/png"); $im=imagecreate(400,400); $black=imagecolorallocate($im,0,0,0); $white=imagecolorallocate($im,255,255,255); $white1=imagecolorallocate($im,200,200,200); $red=imagecolorallocate($im,100,40,40); $red1=imagecolorallocate($im,40,40,100); for($px=-400;$px<400;$px+=20) { $x=$px/20; imageline($im,0,$px+200,400,$px+200,$red); imageline($im,$px+200,0,$px+200,400,$red); } for($px=0;$px<400;$px=$px+(20*M_PI)) { $x=$px/20; imageline($im,0,$px+200,400,$px+200,$red1); imageline($im,$px+200,0,$px+200,400,$red1); } for($px=0;$px>-400;$px=$px-(20*M_PI)) { $x=$px/20; imageline($im,0,$px+200,400,$px+200,$red1); imageline($im,$px+200,0,$px+200,400,$red1); } imageline($im,200,0,200,400,$white); imageline($im,0,200,400,200,$white); imageline($im,195,5,200,0,$white); imageline($im,205,5,400,0,$white); imageline($im,395,195,400,200,$white); imageline($im,395,205,400,200,$white); imagestring($im,10,385,200,"x",$white); imagestring($im,10,185,0,"y",$white); for($px=-400;$px<400;$px=$px+0.1) { $x=$px/20; if($x!=0) $y=cos($x); $py=-$y*20; imagesetpixel($im,$px+200,$py+200,$white1); } imagepng($im); imagedestroy($im); ?> 这就是代码,大伙帮看看吧! <?PHP前不能有任何代码、空格等 餐厅订座系统数据设计问题,求救高手指点思路,谢谢!! 插入的问题 Web Site Re-Design Project in US 通过Activex调用word,实现在线编辑,保存时,IIS下可以,apache不行(100) linux(MAC,Ubuntu)PHP安装SOAP扩展 变量传递问题?? 关于提交重复的问题 php 运行问题 求助:如何让用户在用IE工具条上的Back键返回某页面时。。。 关于树形结构,如何实现无限级的目录结构,就像资源管理器一样!谢谢各位,一定有分! 100分 急!utf-8 编码下$_REQUST 乱码
header("Content-type: image/png");
$im=imagecreate(400,400);
$black=imagecolorallocate($im,0,0,0);
$white=imagecolorallocate($im,255,255,255);
$white1=imagecolorallocate($im,200,200,200);
$red=imagecolorallocate($im,100,40,40);
$red1=imagecolorallocate($im,40,40,100);
for($px=-400;$px<400;$px+=20)
{ $x=$px/20;
imageline($im,0,$px+200,400,$px+200,$red);
imageline($im,$px+200,0,$px+200,400,$red);
}
for($px=0;$px<400;$px=$px+(20*M_PI))
{ $x=$px/20;
imageline($im,0,$px+200,400,$px+200,$red1);
imageline($im,$px+200,0,$px+200,400,$red1);
}
for($px=0;$px>-400;$px=$px-(20*M_PI))
{ $x=$px/20;
imageline($im,0,$px+200,400,$px+200,$red1);
imageline($im,$px+200,0,$px+200,400,$red1);
}
imageline($im,200,0,200,400,$white);
imageline($im,0,200,400,200,$white);
imageline($im,195,5,200,0,$white);
imageline($im,205,5,400,0,$white);
imageline($im,395,195,400,200,$white);
imageline($im,395,205,400,200,$white);
imagestring($im,10,385,200,"x",$white);
imagestring($im,10,185,0,"y",$white);
for($px=-400;$px<400;$px=$px+0.1)
{
$x=$px/20;
if($x!=0) $y=cos($x);
$py=-$y*20;
imagesetpixel($im,$px+200,$py+200,$white1);
}
imagepng($im);
imagedestroy($im);
?>
这就是代码,大伙帮看看吧!
前不能有任何代码、空格等