PHP Session – 一次只能建一個連線

有個需求想用 PHP 來驗證身份,再傳出檔案,

不過遇到一個問題,

若是用 PHP 的 Session 函數 來使用 Session,

會發生同一個Session ID ,同時只能抓一個檔案,

也就是說要同時抓兩個的話,

第二個就要等第一個抓完,連線才會通,

所以目前只好自己寫個簡單的 Session 來解決這個問題。

Google Closure Compiler

Google Closure Compiler 是一個能壓縮和驗證 Java Script 的工具,並能最佳化程式碼。

command :
java -jar closure-compiler.jar –charset UTF-8 –js source.js –js_output_file output.js

 

Closure Tools : https://developers.google.com/closure/

Closure Compiler : https://developers.google.com/closure/compiler/

Download : http://closure-compiler.googlecode.com/files/compiler-latest.zip