2008年4月26日

跳頁選單

<script type="text/javascript">

<!--

function MM_jumpMenu(targ,selObj,restore){ //v3.0

  eval(targ+".location='mail.php?id="+selObj.options[selObj.selectedIndex].value+"'");

  if (restore) selObj.selectedIndex=0;

}

//-->

</script>



<select name="jumpMenu" id="jumpMenu" onchange="MM_jumpMenu('parent',this,0)">

<option value="0">xxx</option>

</select>

2008年4月15日

關閉Windows Server 2003 預設磁碟共用

複製以下code並另存為*.reg

點兩下執行後重開機即可關閉預設得磁碟共用





Windows Registry Editor Version 5.00



[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters]

"AutoShareWks"=dword:00000000

"AutoShareServer"=dword:00000000

2008年4月5日

【PHP】PHP mail() 函式亂碼解決方法





$sub = "=?UTF-8?B?".base64_encode("信件標題")."?=";

$msg = "信件內容(支援html)";

$from="From:herbjoyce@gmail.com";

$from.="\nContent-Type:text/html;charset=utf-8";

mail("herbjoyce@gmail.com",$sub,$mail_content,$from)



即可完整顯示utf-8標題+內容