Recently in Programming Category

Mail Subject Encoding

| | Comments (0)

根據 RFC 2047 的規範, Mail Header 中的 Non-ASCII Text 要用這個格式
「=?charset encoding?encoding code?header content?=」
encoding code 有可能是 b (base64編碼) 或 q (QP編碼)
例如:「測試郵件」編碼後就變成「=?UTF-8?B?5ris6Kmm6YO15Lu2?=」
用 PHP 的話可以用 mb_send_mail(), 會自動幫你編碼.

ref. 石頭閒語:PHP mail() and charset encoding question

jaPBe for PureBasic 4

| | Comments (0)

原始的 jaPBe 已不相容於 PureBasic 4.x
(會出現 Can't initialize compiler)
需使用 jaPBe for PB400

ref. Gnozal's purebasic place

PHP short_open_tag

| | Comments (0)

一直以為 <? ... ?> 跟 <?php ... ?> 是一樣的, 省略 php 沒差,
原來當 short_open_tag=off 時是不能用前者的
php.ini-recommended 的預設值是 short_open_tag = Off

August 2008

Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            

About this Archive

This page is a archive of recent entries in the Programming category.

Photo is the previous category.

Software is the next category.

Find recent content on the main index or look in the archives to find all content.