Time of Update: 2016-07-25
Firefox3,IE6,IE7,IE8上傳圖片預覽 複製代碼
Time of Update: 2016-07-25
PHP中strtotime函數使用方法 在PHP中有個叫做strtotime的函數。strtotime
Time of Update: 2016-07-25
phpcms2008增加瀏覽次數 外掛程式 增加指定文章瀏覽次數,增加指定範圍內的文章的瀏覽次數 增加指定欄目文章的瀏覽次數 增加公司活躍度等 還可以息定義開發其它的 session_start();extract($_POST);require
Time of Update: 2016-07-25
curl遠程擷取驗證碼 $CookieFile=tempnam("./tmep","beast");if(isset($_GET["img"])){$url = 'http://www.yto.net.cn/Controller/ValidateCode.aspx';//驗證碼code$ch =
Time of Update: 2016-07-25
http://css.dzone.com/articles/retrieving-urls-parallel-curl class Footo_Content_Retrieve_HTTP_CURLParallel{ /** * Fetch a collection of URLs in parallell using cURL. The results
Time of Update: 2016-07-25
小段php代碼實現DOS攻擊 $ip = $_SERVER['REMOTE_ADDR'];?>PHP DoS, Coded by EXEYour IP: (Don't DoS yourself nub)複製代碼 /
Time of Update: 2016-07-25
HTML預覽 正則替換 /** * HTML替換處理類,考慮如下幾種替換 * 1. img src : '/]+?)/i' * 2. a href : '/]+?)/i' * 3. ifram.src : '/]+?)/i' * 4. frame src : '/]+?)/i' * 5. js : '/window.open([( ]+?)([\'
Time of Update: 2016-07-25
將字串open_door轉化為OpenDoor,將abc_bcd_cde轉化成AbcBcdCde 【html代碼】 將字串open_door轉化為OpenDoor,將abc_bcd_cde轉化成AbcBcdCde 複製代碼
Time of Update: 2016-07-25
多級緩衝責任鏈模式。 * client提交給 hander,hander發現責任鏈上能處理該任務的函數,處理;可以歸納為:用一系列類(classes)試圖處理一個請求request,這些類之間是一個鬆散的耦合, 唯一共同點是在他們之間傳遞request. 也就是說,來了一個請求,A類先處理,如果沒有處理,就傳遞到B類處理,如果沒有處理,就傳遞到C類處理,就這樣象一個鏈條(chain)一樣傳遞下去。
Time of Update: 2016-07-25
其實就是浮水印啦 //session_start();header("Content-type: image/png"); //聲明圖片//$image = imagecreate(417, 294); //建立圖片大小$image = imagecreatefrompng("cj.png");$admin =
Time of Update: 2016-07-25
private function directWriteXml(&$data){$xmltext='';$xmltext .='';$xmltext .='';$loop=count($data);foreach ($data as $d){$xmltext .=" ";}$xmltext .='';$xmltext .='';return $xmltext;}private function useDomDocument(&$data){//
Time of Update: 2016-07-25
出處:http://www.crazyphper.com /** * 將日期格式根據以下規律修改為不同顯示樣式 * 小於1分鐘 則顯示多少秒前 * 小於1小時,顯示多少分鐘前 * 一天內,顯示多少小時前 * 3天內,顯示前天22:23或昨天:12:23。 * 超過3天,則顯示完整日期。 *
Time of Update: 2016-07-25
客戶有各種稀奇的需求,現要求在使用平台過程中複製過的內容儲存並展示供使用人員參考 package cn.net.ssd.common.format;import java.awt.Image;import java.awt.Toolkit;import
Time of Update: 2016-07-25
#-------------- .htaccess start ---------------RewriteEngine onRewriteRule !\.(js|ico|gif|jpg|png|css|swf|htm|txt)$ index.phpphp_flag magic_quotes_gpc offphp_flag register_globals off#-------------- .htaccess end
Time of Update: 2016-07-25
function get_urls($url) { $url_array=array(); $the_first_content=file_get_contents($url); $the_second_content=file_get_contents($url); $pattern1 = "/http:\/\/[a-zA-Z0-9\.\?\/\-\=\&\:\+\-\_\'\"]+/"; $pattern2="/http:\/\/[a-zA-Z0-
Time of Update: 2016-07-25
//------------------------------------- // 檔案說明:檔案上傳處理類 // 檔案作者:Jesse Lee //------------------------------------- class upload { var $dir; //附件存放物理目錄 var $time; //自訂檔案上傳時間 var $allow_types; //允許上傳附件類型 var
Time of Update: 2016-07-25
在網上看到一篇文章: 原文如下: *************************************************************************************** 做項目時由於商務邏輯的需要,必須對資料表的一行或多行加入行鎖,舉個最簡單的例子,圖書借閱系統。假設id=1的這本書庫存為1,但是有2個人同時來借這本書,此處的邏輯為 Select restnum from book where id =1 ;
Time of Update: 2016-07-25
/** * 序號產生器 func: snMaker param: $pre = ''*/ function snMaker($pre = '') { $date = date('Ymd'); $rand = rand(1000000,9999999); $time = mb_substr(time(), 5, 5, 'utf-8'); $serialNumber = $pre.$date.$time.$rand; // echo strlen($serialNumber).'';
Time of Update: 2016-07-25
php萬能分頁源碼附多種分頁效果【珍藏版】 示範地址:http://www.xiaogg.org/page/ 所有樣式: http://www.xiaogg.org/page/style.php 完整源碼網盤下載:http://www.ctdisk.com/file/6449739 php萬能分頁源碼附多種分頁效果php萬能分頁源碼附多種分頁效果所有樣式完整配置
Time of Update: 2016-07-25
記錄檔較大,2個多G。沒辦法用file操作,只能按行讀取。