Correct Mantis timezone setting

Warning: strtotime() [function.strtotime]: It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier.

solution:  Open file , php.ini and enable –   date.timezone = "Asia/Taipei"

Reference from: http://wordpress.org/support/topic/285337

Bulk Sender Guidenline

 We’ve received inquiries from bulk senders who’d like more information on best practices to ensure that their mail is delivered to Gmail users. The way Gmail classifies spam depends heavily on reports from our users. Gmail users can mark and unmark any message as spam, at any time. To increase the inbox delivery rate of your messages, make sure that all recipients on your distribution lists actually want to receive the mail. Visit the following sections for some tips on how to make sure your messages are welcomed by Gmail users.

Authentication & Identification
Subscription
Unsubscribing
Format
Delivery
Third-Party Senders
Affiliate Marketing Programs

Reference from:

https://mail.google.com/support/bin/answer.py?hl=en&answer=81126

DKIM介紹

DKIM(DomainKeys Identified Mail)是一種用來對抗釣魚之類廣告信的協定.

當初yahoo以及cisco為了對抗廣告信(至少不讓廣告商冒用其名義寄信),使用一種特殊的方式對抗廣告信,
實施了多年以後,終於證明可以有效阻擋廣告信,因此他們將此協定開放讓大家使用,
到了2005年,在多家廠商的合作下,規範出第一版DKIM,送交IETF審查.
,並且在2007年通過,成為開放通訊協定中的一種,RFC編號為4871.

DKIM的運作方式有兩種, 第一種是驗證(verification),第二種是簽名(signature).
假設我是test.com這個網域的管理員, 我必須利用DNS設定一組公開金鑰,
讓所有人可以取得且用來驗證郵件是否為test.com郵件伺服器發出.
這樣以後所有從test.com郵件伺服器所送出的郵件,只要經過簽名(必須使用私密金鑰才可以簽名),
對方就可以使用公開金鑰認證,確保郵件是否為真.

若所有的郵件伺服器都有這樣的機制, 那些廣告信就無所遁形, 因為他們無法經由簽名預告郵件是否為真
.若廣告商要破解這種機制是需要很大的成本,就目前來說, 是很有效的檔廣告機制.

目前實做的DKIM的模組,對於所定義的公開金鑰與私密金鑰,
還只限於郵件伺服器本身對外發出(非公信力單位發出),
現已有 RFC5016(DKIM Signing Practices Protocol)討論所謂的SPP,
未來很可能形成另一種具備安全性與公信力的通訊協定,讓DKIM更能普及.

若遭遇大量廣告郵件攻擊郵件伺服器,在伺服器還沒進行DKIM驗證的動作時,
可以搭配其他輔助套件,先行阻擋廣告商郵件寄送,
才不至於造成郵件伺服器負載過高甚而停止運作.

特別一提的是目前DKIM並不能證明郵件真的是發信者本人發出,
必須搭配第三者簽名的方式如PGP等單位才是正確方式,

Reference from:

http://gmailblog.blogspot.com/2009/07/unsubscribing-made-easy.html

http://fromtw.blogspot.com/2008/09/dkim.html

http://www.dkim.org/index.html

http://www.thismail.org/bbs/viewthread.php?tid=2743

http://a-wei.net/archives/611

http://news.cnet.com/8301-27080_3-10293284-245.html

Enable Parent Paths Is Disabled by Default in IIS 6.0

Error

ASP error 0131 The include file <%filename.ext%> cannot contain ‘..’ to indicate the parent directory. /<%path%>/<%filename.ext%>, line <%number%>

Solution:

To resolve this problem without changing the application:

  1. Click Start, click Administrative Tools, and then click Internet Information Services (IIS) Manager.
  2. Double-click your computer name in the left pane, and then double-click Web Sites.
  3. Locate the Web site and directory that houses the ASP application.
  4. Right-click the application site or directory, and then click Properties.
  5. Select Home Directory, and then click Configuration.
  6. Click Options, and then click to select the Enable Parent Paths check box.
  7. Click OK two times.

Reference from:

http://support.microsoft.com/default.aspx?scid=kb;en-us;332117

http://www.bellaonline.com/articles/art42211.asp

Permanent Redirect with HTTP 301

redirect

HTTP 301 Redirect in ASP.NET

<script runat=”server”>

private void Page_Load(object sender, System.EventArgs e)

{

Response.Status = “301 Moved Permanently”;

Response.AddHeader(“Location”,”http://www.new-url.com/”);

}</script>

HTTP 301 Redirect in ASP-VBScript
<%@ Language=VBScript %>
<% Response.Status = “301 Moved Permanently”
Response.AddHeader “Location”, “http://www.somacon.com/”
Response.End
%>

HTTP 301 Redirect in PHP
<?php header(“HTTP/1.1 301 Moved Permanently”);
header(“Location: http://www.somacon.com/”); exit(); ?>

HTTP 301 Redirect in ColdFusion
<CFHEADER statuscode=”301″ statustext=”Moved Permanently”>
<CFHEADER name=”Location” value=”http://www.somacon.com/”>

HTTP 301 Redirect in Perl
#!/usr/bin/perl      -w
use strict;
print “Status: 301 Moved Permanently\n”;
print “Location: http://somewhere/page.htm\n\n”;
exit;

Redirection with Javascript
<html>
<head>
<script type=”text/javascript”>
window.location.href=’http://www.somacon.com/’;
</script>
</head>
<body>This page has moved to <a href=”http://somacon.com/”>http://somacon.com/</a>
</body>
</html>

Note that they syntax document.location=”; has been deprecated. Use the above code, or alternately, document.URL=”;.

Redirection with META Refresh
<html>
<head>
<meta http-equiv=”refresh” content=”0;url=http://www.somacon.com/”>
</head>
<body>
This page has moved to <a href=”http://somacon.com/”>http://somacon.com/</a>
</body>
</html>

Reference from: http://www.somacon.com/p145.php; Http/1.1 code definitions