# /usr/local/sbin/apxs -i -a -c mod_fileiri.c
/usr/local/share/apache2/build/libtool .....
/usr/local/share/apache2/build/libtool .....
/usr/local/share/apache2/build/libtool .....
cp .libs/mod_fileiri.so /usr/local/libexec/apache2/mod_fileiri.so
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/libexec/apache2
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
grep: /usr/local/libexec/apache2/mod_fileiri.la: No such file or directory
grep: /usr/local/libexec/apache2/mod_fileiri.la: No such file or directory
Warning! dlname not found in /usr/local/libexec/apache2/mod_fileiri.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/libexec/apache2/mod_fileiri.so
[activating module `fileiri' in /usr/local/etc/apache2/httpd.conf]
<?# http://bbs.giga.net.tw/demo/dl-test3.php
$filename='Peacock.jpg';$ims=preg_replace('/;.*$/','',$_SERVER['HTTP_IF_MODIFIED_SINCE']);$mod_time=gmdate('D, d M Y H:i:s',filemtime($filename)).' GMT';if($mod_time==$ims){header('HTTP/1.0 304 Not Modified');exit;}header('Cache-Control: max-age=60');header('Last-Modified: '.$mod_time);header('Content-Type: application/octet-stream');header('Content-Length: '.filesize($filename));header('Content-Transfer-Encoding: binary');header('Content-Disposition: attachment; filename="'.$filename.'"');$fp=fopen($filename,'rb');while(!feof($fp)){echofread($fp,1024);}fclose($fp);?>
<?# http://bbs.giga.net.tw/demo/dl-test2.php
$filename='Peacock.jpg';header('Last-Modified: '.gmdate('D, d M Y H:i:s',filemtime($filename)).' GMT');header('Content-Type: application/octet-stream');header('Content-Length: '.filesize($filename));header('Content-Transfer-Encoding: binary');header('Content-Disposition: attachment; filename="'.$filename.'"');$fp=fopen($filename,'rb');while(!feof($fp)){echofread($fp,1024);}fclose($fp);?>
CMU 的資料庫中共用到 40 個音標符號,不過似乎並不是標準的 KK 音標,每個音標符號各以一或兩個英文字母的代碼表示,整份列表是長這個樣子的:
HARBESON HH AA1 R B IH0 S AH0 N
HARBIN HH AA1 R B IH0 N
HARBINGER HH AA1 R B IH0 N JH ER0
HARBINGERS HH AA1 R B IH0 NG ER0 Z
HARBINSON HH AA1 R B IH0 N S AH0 N
HARBISON HH AA1 R B IH0 S AH0 N
HARBOLD HH AA1 R B OW2 L D
HARBOR HH AA1 R B ER0
經過與 unicode 比對之後,整理出來的對應表如下:
代碼
音標
Unicode
顯示方式
代碼
音標
Unicode
顯示方式
AA
ɑ
U+0251
ɑ
K
k
–
k
AE
æ
U+00E6
æ
L
l
–
l
AH
ʌ
U+028C
ʌ
M
m
–
m
AH0
ə
U+0259
ə
N
n
–
n
AO
ɔ
U+0254
ɔ
NG
ŋ
U+014B
ŋ
AW
ɑʊ
U+0251 U+028A
ɑ ʊ
OW
o
–
o
AY
ɑɪ
U+0251 U+026A
ɑ ɪ
OY
ɔɪ
U+0254 U+026A
ɔ ɪ
B
b
–
b
P
p
–
p
CH
tʃ
t U+0283
tʃ
R
r
–
r
D
d
–
d
S
s
–
s
DH
ð
U+00F0
ð
SH
ʃ
U+0283
ʃ
EH
ɛ
U+025B
ɛ
T
t
–
t
ER
ɚ
U+025A
ɚ
TH
θ
U+03B8
θ
ɝ
U+025D
ɝ
EY
e
–
e
UH
ʊ
U+028A
ʊ
F
f
–
f
UW
u
–
u
G
g
–
g
V
v
–
v
HH
h
–
h
W
w
–
w
IH
ɪ
U+026A
ɪ
Y
j
–
j
IY
i
–
i
Z
z
–
z
JH
dʒ
d U+0292
dʒ
ZH
ʒ
U+0292
ʒ
其中 ɝ 這個音標並沒有被 CMU 這個資料庫用到,我也不知為什麼,可能是它用的並不是標準的 KK 音標吧
另外,比較奇怪的一點是,使用 Firefox 瀏覽這些 unicode 音標符號都沒有問題,但是使用 Internet Explorer 的話,有部分符號會顯示出不出來(變成一個空白的框框)