原创 Wmode(window, transparent, opaque)

 It's not uncommon to hear developers complaining that their DHTML menus, when triggered, have dropped behind the Fla

原创 Persisten Connections, Pipelining and chunking

 The Content-Length header is an interesting HTTP response header. This header tells HTTP client applications th

原创 Daily Recording

Another times, I come to here, to record something about my daily life. Nothing special happened today, everything is go

原创 How Javascript Timers Work

At a fundamental level it's important to understand how JavaScript timers work. Often times they behave unintuitively b

原创 理解HTTP冪等性

 基於HTTP協議的Web API是時下最爲流行的一種分佈式服務提供方式。無論是在大型互聯網應用還是企業級架構中,我們都見到了越來越多的SOA或RESTful的Web API。爲什麼Web API如此流行呢?我認爲很大程度上應歸功於簡單有效

原创 我的友情鏈接

51CTO博客開發

原创 內存管理

今天,突發奇想,想要知道變量在內存中是怎麼初始化的。研究了JS和PHP的變量初始化過程,總結如下:內存分爲:數據,代碼,棧,堆數據內存用於存儲全局變量,常量等;代碼是用於存儲執行代碼的內存空間;棧的內存空間是不需要尋址的,可以直接讀取。所以

原创 Tuning Apache and PHP for Speed on Unix

Also read my essay Optimizing PHP for a more in depth coverage of these issues with case studies.To tune well, you need

原创 A HOWTO on Optimizing PHP

A HOWTO on Optimizing PHPPHP is a very fast programming language, but there is more to optimizing PHP   than just speed

原创 Flash Garbage collector

 To understand how to optimize your code for ActionScript 3.0, you'll first need an understanding of how the garbage c

原创 Javascript 單線程介紹

 JavaScript的setTimeout與setInterval是兩個很容易欺騙別人感情的方法,因爲我們開始常常以爲調用了就會按既定的方式執行, 我想不少人都深有同感, 例如 setTimeout( function(){ alert

原创 HTML+DOM與XML+DOM之間的區別與聯繫

像在座閱讀此文的讀者一樣,由於自身的興趣,我對 AJAX 編程方面的研究是持續不斷的。隨着該領域的深入,我越來越發覺所謂的瀏覽器 DOM,即 HTML DOM,是一個非常值得關注的點。在與資深的技術人員們交換意見的時候,也曾談到過這樣的觀點

原创 Difference between flush, ob_flush and ob_end_flush

Functions ob_flush and ob_end_flush, both are for pushing content sending to browser. But what is the difference?1, ob_f

原创 php detect connection status

PHP script executed terminalPHP script can be possiblly terminaled in those situations:1, Max time limiation is reaching

原创 理解HTTP冪等性

 基於HTTP協議的Web API是時下最爲流行的一種分佈式服務提供方式。無論是在大型互聯網應用還是企業級架構中,我們都見到了越來越多的SOA或RESTful的Web API。爲什麼Web API如此流行呢?我認爲很大程度上應歸功於簡單有效