2016年4月21日
摘要: 运行结果: <!--vcode.class.php--> <?php class Vcode { private $width; //宽 private $height; //高 private $num; //数量 private $code; //验证码 private $img; //图像的资 阅读全文
posted @ 2016-04-21 22:33 奋斗的寒霜 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 运行结果: <!--vcode.class.php内容--> <?php class Vcode { private $width; //宽 private $height; //高 private $num; //数量 private $code; //验证码 private $img; //图像 阅读全文
posted @ 2016-04-21 21:14 奋斗的寒霜 阅读(228) 评论(0) 推荐(0) 编辑
摘要: <!--vcode.class.php内容--> <?php class Vcode { private $width; //宽 private $height; //高 private $num; //数量 private $code; //验证码 //构造方法, 三个参数 function __ 阅读全文
posted @ 2016-04-21 20:54 奋斗的寒霜 阅读(391) 评论(0) 推荐(0) 编辑
摘要: <!--code.php内容--> <?php //开启session session_start(); include "vcode.class.php"; //构造方法 $vcode = new Vcode(80, 25, 4); //将验证码放到服务器自己的空间保存一份 $_SESSION = 阅读全文
posted @ 2016-04-21 20:35 奋斗的寒霜 阅读(190) 评论(0) 推荐(0) 编辑
摘要: <!--demo.html中内容--> <body> <img id="time" src="test.php" /> <script> setInterval(function(){ //让时间动起来 document.getElementById("time").src="test.php?"+ 阅读全文
posted @ 2016-04-21 20:21 奋斗的寒霜 阅读(337) 评论(0) 推荐(0) 编辑