反而我部落格其他比較重要、有在花心思在寫的文章,PHP、或是我之前有在用的一些東西、程式設計筆記等等 Yahoo 完全搜尋不到。
不過為什麼每個月會有 60 個人那麼無聊,搜尋「生活隨筆」咧?搜尋「茹絲葵」我還會比較高興一點 XD
-->
"index of"
"to parent directory"
<Directory "/usr/local/www">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
叫鬱部預計下星期一進行DOC填寫需求,但今天(星期五)下午才說要用此系統,請見諒。
#Set Default Timezone
$wgLocaltimezone = "America/Los_Angeles";
$oldtz = getenv("TZ");
putenv("TZ=$wgLocaltimezone");
# Versions before 1.7.0 used $wgLocalTZoffset as hours.
# After 1.7.0 offset as minutes
$wgLocalTZoffset = date("Z") / 60;
putenv("TZ=$oldtz");
$wgLocaltimezone = "Asia/Taipei";
johnroyer@localhost df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ad0s1a 14G 154M 13G 1% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/ad0s2d 17G 4.2G 11G 27% /home
/dev/ad0s1e 2.9G 1.6G 1.1G 59% /usr
/dev/ad0s1d 1.9G 861M 959M 47% /var
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['user']['edit'] = true;
#firewall
options IPFIREWALL
options IPFIREWALL_DEFAULT_TO_ACCEPT
options IPFIREWALL_VERBOSE
options IPFIREWALL_VERBOSE_LIMIT=10
options IPFIREWALL_FORWARD
options DUMMYNET
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<head>
<title>編碼測試</title>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
function quotes($content){
if (!get_magic_quotes_gpc()) {
if (is_array($content)) {
foreach ($content as $key=>$value) {
$content[$key] = addslashes($value);
}
} else {
addslashes($content);
}
}
return $content;
}
function quotes($content){
if (!get_magic_quotes_gpc()) {
if (is_array($content)) {
foreach ($content as $key=>$value) {
$content[$key] = addslashes($value);
}
} else {
addslashes($content);
}
}
return $content;
}
foreach( $_POST as $key => $value ){
$http_post[$key] = quotes( $value );
}
foreach( $_GET as $key => $value ){
$http_get[$key] = quotes( $value );
}
$phrase = "Hello World";
$sha1a = base64_encode(sha1($phrase));
$sha1b = base64_encode(bin2hex(mhash(MHASH_SHA1,$phrase)));
$sha256b= base64_encode(bin2hex(mhash(MHASH_SHA256,$phrase)));
echo ("SHA1..:" . $sha1a . "\n");
echo ("SHA1..:" . $sha1b . "\n");
echo ("SHA256:" . $sha256b . "\n");
?>