摘要: 1 "; 19 echo microtime(true).""; 20 echo time().""; 21 echo mktime(0,0,0,1,1,1970).""; 22 echo ""; 23 24 print_r(getdate()); echo ""; 25 print_r(getdate(mktime(10,31,50))); 26 echo ""; 27 28 echo date("Y-m-d H:i:s", time()).& 阅读全文
posted @ 2013-08-16 13:26 Burn_E 阅读(272) 评论(0) 推荐(0)
摘要: 1 "; 12 echo "filetype:".filetype($filename).""; 13 echo "filesize:".filesize($filename).""; 14 echo "readable:";var_dump(is_readable($filename)); echo ""; 15 echo "writeable:";var_dump(is_writeable($filename)); echo "&q 阅读全文
posted @ 2013-08-16 13:22 Burn_E 阅读(389) 评论(0) 推荐(0)
摘要: 1 "gif", 2=>"jpeg", 3=>"png"); 14 //组合创建图像函数名 15 $createfrom = "imagecreatefrom".$types{$type}; 16 $image = $createfrom($filename); 17 //对该图片进行操作 18 $image = $func($image, $width, $height, $type, $vars); 19 //组合输出图像函数名 20 $output = "image".$t.. 阅读全文
posted @ 2013-08-16 13:10 Burn_E 阅读(445) 评论(0) 推荐(0)
摘要: vcode.class.php 1 width = $width;13 $this->height = $height;14 $this->codeNum = $codeNum;15 $number = floor($height * $width / 15);16 //计算干扰元素数量17 if ($number > 240 - $codeNum) 18 $this->disturbColorNum = 240 - $codeNum;19 ... 阅读全文
posted @ 2013-08-16 12:44 Burn_E 阅读(438) 评论(0) 推荐(0)
摘要: 1 绘制图像->输出图像->释放资源 5 */ 6 /* 创建图像 7 * imagecreate(int sx, int sy) 基于调色板的图像(256色) 8 * imagecreatetruecolor(int sx, int sy) 基于真彩色图像,不能用于gif图像 9 */ 10 $image = imagecreatetruecolor(800, 800); 11 /* 设置颜色 12 * imagecolo... 阅读全文
posted @ 2013-08-16 12:35 Burn_E 阅读(674) 评论(0) 推荐(0)