簡單實作PHP圖片驗證
查理布朗的倒楣世界 Clyang’s Murmuring http://clyang.net/blog/2009/02/23/227
Published by clyangon 二月 23, 2009in PHP and 技術.
手邊有個服務需要圖片驗證(captcha)的功能,所以翻了一下之前寫的code,順便整理一下跟大家分享。這邊的code是產生出來的圖片
SHELL排序
24,77,53,47,52,67,85,15,25,84,35,16,4,7,9,
4,7,9,15,16,24,25,35,47,52,53,67,77,84,85,
<?php
function swap(&$a ,&$b) {
$temp = $a ;
$a= $b ;
$b = $temp ;
}
function
時間格式轉換
語法:
echo date("Y/m/d",strtotime("2008-06-18 10:50:00"));$date1 = date("Y/m/d",strtotime($date2));
echo dat
//抓螢幕大小
$screen_width="
";
$screen_height="
";
echo $screen_width.":".$screen_height;
<?php /* ----------------------------------------------------------------------
DTT 2.1.5.2 (c)2007 FSL - FreeSoftLand
Title: RDF to PHP Object Converter
請問...
time1 = 2005-04-01 08:00
time2 = 2005-04-15 12:00
time3 = 系統時間
要怎樣比較這三個時間的大小?
ex.
<?php
if (time1 < time3 < time2){
echo "$msg";
}
?>Is This What U Want To Do?
<?php
$t1=strt
<?php /* ----------------------------------------------------------------------
DTT 2.1.5.2 (c)2007 FSL - FreeSoftLand
Title: XMLRSS News Feed Parser
完成測試所有符號`1234567890-=\][';/.,~!@#$%^&*()_+|}{":?><
<?php /* ----------------------------------------------------------------------
DTT 2.1.5.2 (c)2007 FSL - FreeSoftLand
Title: A basic function for debuggi
//狀態用陣列
$qstate_array=array(" ","
編寫","
新問題","