那种在图片上显示地方和IP的DD是怎么做出来的,是否有源码提供下载!!

Aa7643 2003-09-14 06:30:09
我知道是用GD库来做出来的,但是想看看源代码!!
...全文
19 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
konc 2003-09-17
  • 打赏
  • 举报
回复
http://windows.s33.xrea.com:8080/ipimg/ipcover.png


http://konc.nxm.cn/ipimg.zip
Aa7643 2003-09-16
  • 打赏
  • 举报
回复
没有人提供吗???谁提供我给50分
luxuezhu 2003-09-15
  • 打赏
  • 举报
回复
MARK
MeE 2003-09-14
  • 打赏
  • 举报
回复
<?php
Header("Content-type: image/png");
function random($length=6)
{
$hash = '';
$chars = '0123456789';
$max = strlen($chars) - 1;
mt_srand((double)microtime() * 1000000);
for($i = 0; $i < $length; $i++)
$hash .= $chars[mt_rand(0, $max)];
return $hash;
}
$rand=random(6);
$_SESSION['randomcode']=$rand;
$im = imagecreate(60,25);
$white = ImageColorAllocate($im, 255,255,255);
$red = ImageColorAllocate($im, 255,0,0);
imagestring($im, 5, 4, 6,$rand, $red);
Imagepng($im);
ImageDestroy($im);
?>
产生随机数的

21,891

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧