XAMPP 安裝設定說明筆記(windows)

XAMPP 安裝設定說明筆記(windows)

XAMPP是完全免費且易於安裝的Apache發行版本,其中包含MySQL、PHP和Perl。XAMPP開放源碼套件的設置讓安裝和使用出奇容易。

XAMPP Apache + MySQL + PHP + Perl

下載安裝檔:https://www.apachefriends.org/zh_tw/download.html

Windows 2008, 2012, Vista, 7, 8 (Important: XP or 2003 not supported)

閱讀更多

QQ 寄信重點整理

QQ寄信時,若寄件者用QQ帳號但是是使用第三方的寄件伺服器,發件人欄會顯示Sender名稱

閱讀更多

Outlook Express 壓縮計數器清零

還在用XP的Outlook Express嗎?

「Outlook Express提示要壓縮郵件是在啟動Outlook Express 100次後,可以修改以下註冊表鍵值來取消壓縮郵件提示:

HKEY_CURRENT_USERIdentities{B1A23E35-A22F- 4D01-B97C-69D8D9EDE22C}SoftwareMicrosoftOutlook Express5.0Compact Check Count

修改成十進值的1後就沒有提示了

IIS 輸出快取

IIS X 可以讓我們設定輸出快取來改善網頁伺服器、網站或應用程式的效能。

啟用輸出快取之後,IIS會複製一份處理過的網頁,並儲存在自己的記憶體,如果後續用戶 端的要求需要相同的資源,會直接從自己的記憶體取出並傳回給用戶端。這樣就不需要在每次處理用戶端要求時,都重新處理網頁,因此能提高伺服器效能,縮短用 戶端的等待時間。

尤其,如果網站內容是以程式動態產生(例如 PHP 或 ASP.NET),或者是以外部來源資料作為網站內容(例如資料庫),開啟輸出快取將對網站伺服器產生更大的效益。

相關說明設定參考:
http://www.microsoft.com/taiwan/technet/iis/learn/iis_php_outputCache.aspx

Application Warm-up Module

應用程式的暖機

暖機在工程界是很常出現的名詞,各類大型機具在開始工作之前都要先行暖機,如果沒有暖機的話可能會發生機械故障的意外,對於一些大型的Web應用程式來 說,有些程式也是需要暖機的,尤其是事先針對某些數據或功能進行初始化,而且初始化的時間又會有點長的時候,一個簡單的例子就是在網站載入時要先連到很繁 忙的資料庫存取資料或是要做一些科學運算,這些工作可能會花上一段時間,如果在沒有事先做完就讓 HTTP 要求進來的話,第一個使用的使用者總是當白老鼠的角色,同時也會讓使用者覺得系統太慢。

另外一種可能的情況,就是有做 Load Balancing 的大型應用程式,如果在其中有某幾台伺服器執行了 Application Recycling(應用程式集區的回收),那麼在重新載入應用程式時如果有使用者進來,那麼那個使用者就要等到應用程式暖機完成後才可以被服務,這段時 間都是等待的,對使用者來說不但是速度慢,同時還有很高的機率會在瀏覽器上看到「無法顯示網頁」的訊息,表示要求逾時了,重視使用者經驗的公司通常都不希 望應用程式發生這樣的問題。

因此在 IIS 7.0 中,微軟設計了一個模組,讓應用程式可以有充足的時間暖機,暖機完成後才會開始接收第一個 HTTP 要求,這個模組即是 Application Warm-up 模組。

http://www.microsoft.com/taiwan/technet/iis/expand/ApplicationWarmUp.aspx

x64 download: http://go.microsoft.com/fwlink/?LinkId=247817

x86 download: http://go.microsoft.com/fwlink/?LinkId=247816

Google drive 安裝在 server 2008

在server 2008使用Google drive會卡在登入畫面.....

請至IE加入 "https://*.google.es" & "https://*.google.com"  到信任的網站列表

就可以正常登入了

效能:絕對路徑 vs 相對路徑

個人覺得相對路徑效能應是快一點點點,因為網頁載入時少了http://xxx.xxx.xxx 這幾個字元,而且不需要再做DNS解析^^

很有趣的比較,不曉得正確性,參考參考~~

Assuming the resource is not embedded within the HTML document itself (i.e. it is linked), and the resource is on the same server with the same host name, the time to retrieve the resource via absolute or relative URI should be virtually identical. An additional HTTP request will be submitted either way. If you want to split the 'virtually identical', I would lean toward the relative path being a very, very, very small amount faster, due to the smaller amount of HTML that needs parsed, the path parsing (as you mentioned) potentially being quicker (due to the string tokenizer not having to deal with the domain portion of the address/the address being shorter). The difference here is only realistic for curiosity's sake.. I can't imagine a site being optimized down to this level (although, it may establish a good rule of thumb? Relative pathing allows you to freely change the domain/path of the site without having to rewrite all of the URIs contained within..)

One thing to consider would be if the resource is not hosted on the same server, and the server of the referencing HTML document has KeepAlive enabled, another TCP connection will have to be initialized to connect to the second server (as well as a DNS query being made to resolve the other server's host name, assuming the access is not via IP address), resulting in additional overhead in comparison to multiple referenced resources on the same server (where the GET requests would be issued within the existing TCP connection).

The same would apply to a server that does not have KeepAlive enabled; a TCP connection will be initialized for each requested resource.

answered Gboast

ps.使用相對路徑在變更網址或做coding時會方便許多

Apache 多站點設定(XAMPP)

修改\xampp\apache\conf\httpd.conf 檔案,在最後面加上以下的碼

閱讀更多