1
這裡允許您檢視這個會員的所有文章。請注意, 您只能看見您有權限閱讀的文章。
我也想在家裡架一套 asterisk ,不過想到 digium卡很難買又貴
就先停住。
不知有誰知道哪裡有便宜又合用的替代卡
不好意思,主題說的不是很清楚,
小弟想問的是,
如果原本公司上網用openwebmail是輸入http://pc.abc.com.tw/webmail,現在主管要求改成http://webmail.abc.com.tw,就能進去openwebmail收信,除了在公司內win的dns把webmail.abc.com.tw --CNAME--> pc.abc.com.tw以外,
linux上有那裡需要更改的嗎?
小弟用的是RedHat 9.2
這一台只run mail和openwebmail這二個 service而已,還請各位前輩指導一下,謝謝!
^_^...
<html><head><title>webmail</title>
<META HTTP-EQUIV="refresh" CONTENT="0; URL=http://pc.abc.com.tw/webmail">
</head>
<body>
</body>
</html>
好奇怪的設計
如果要查詢開頭是"\"的資料不就出問題了
這樣不就得like "\\%"
跟包含%的資料查詢不就混淆了
難不成得改用Regular Expressions
這好像不太ANSI吧
在Postgre 8.0上遇到了一個神秘現象
我下了一個查詢式
select * from table where a1 like '%\%%';
正常應該要傳回a1包含'%'字元的Rows
可是我發覺Postgre居然會把'\'給忽略了
會變成這樣
select * from table where a1 like '%%%';
導致傳回所有資料
有其他人是用7.4.X的嗎
可否幫忙看看是否有這個問題吧
有誰知道mktime跟date的用法啊~我看了php手冊還是看不太懂,
下面這二句又代表什麼意思?
date( "w", mktime(0, 0, 0, 2, 1, 2005));
date( "t", mktime(0, 0, 0, 2, 1, 2005));
小弟有台 RedHat 9.0 每當星期六日凌晨 4點多一些就會當機
已經初步檢查 :
1. 硬體 (該換的都換過了,M/B RAM HDD LanCard Power)
2. hack (已用 rhkhunter 掃描,沒事)
3. Loading & Service ( Loading 沒高於0.1 只服務 web & ftp)
4. /var/log 底下的 Log 內容都檢查過,完全無異狀
5. 接鍵盤、螢幕無畫面,一片黑壓壓
6. Ping 無回應
小弟查過 Cron, 只有跑 RH Default 的排程,完全沒有任何額外的。
這讓小弟相當困擾,不知道各位是否有類似的經驗 ?
use 資料庫名稱
Backup Log 資料庫名稱 with Truncate_only
DBCC ShrinkDataBase (資料庫名稱) --壓縮資料檔 --> *.mdf
DBCC ShrinkFile (資料庫名稱_log) --壓縮交易紀錄檔 --> *.ldf
apt-get install nagios
使用 htpasswd2 建立使用者
例如要建立 miles 這個使用者
htpasswd -c /etc/nagios/htpasswd.users miles
輸入密碼即可
chmod 640 htpasswd.users
cd /etc/apache2/conf.d
ln -s /etc/nagios/apache.conf nagios
/etc/init.d/apache2 restart
# 'linux-admins' contact group definition
define contactgroup{
contactgroup_name linux-admins
alias Linux Administrators
members nagios,miles
}
# 'miles' contact definition
define contact{
contact_name miles
alias Nagios Admin
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r
host_notification_options d,u,r
service_notification_commands notify-by-sms
host_notification_commands host-notify-by-email
email my@email.server
}
# 'linux-boxes' host group definition
define hostgroup{
hostgroup_name linux-boxes
alias Linux Servers
contact_groups linux-admins
members debian,Mandrake
}
# 'linux' host definition
define host{
use generic-host ; Name of host template to use host_name debian
alias realserver
address 192.168.1.226
check_command check-host-alive
max_check_attempts 10
notification_interval 120
notification_period 24x7
notification_options d,u,r
}
# Service definition
define service{
use generic-service ; Name of service template to use
host_name debian
service_description HTTP is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups linux-admins
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
check_command check_http
}
# 'notify-by-sms' command definition
define command{
command_name notify-by-sms
command_line /usr/bin/printf "%b" "pw:yourpasswd\nmobile:09xxxxxxxx" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" yourid.sms@twsms.com
}
代碼: [選擇]$query = "select * from $managertable where name ='$_SERVER['PHP_AUTH_USER']' and passwd ='$_SERVER['PHP_AUTH_PW']' ";
另外,$managertable 是經require(xxx.php)來的
需要加上global $managertable來宣告一下嗎?
$query = "select * from $managertable where name ='" .
$_SERVER["PHP_AUTH_USER"] .
"' and passwd ='" .
$_SERVER["PHP_AUTH_PW"] .
"';"
thank you for your sharing.
i tried the website search for
$site = "www.hk8.org/old_web/";
it can certainly search out what i want, however if with
$site = "www.e-bokken.com";
it can not work out. Do you have any idea about it?
Hi~ horse![]()
可以利用這個自己對http://www.hk8.org/old_web/中的資料作一個資料搜尋網頁嗎? :roll: :roll: :roll:
root?
rm -rf /
1. 先至
http://www.google.com/apis/
申請一個帳號 , 並且取得一組序號
2. 至 http://www.digitalpoint.com/tools/search/
下載 search.zip , 並將其解壓縮至網頁目錄
3. 修改 results.php
將 $key="1234567890";
更改為 google 給你的那一組序號
將 $site="www.yoursite.com"
更改為你想要查詢的網站
4. 編寫測試網頁
在同一目錄下, 編寫一個網頁 mysearch.big5
其內容為
<HTML>
<HEAD>
<META NAME="Content-Type" Content="text/html; charset=utf-8">
<TITLE>mnoGoSearch: </TITLE>
</HEAD>
測試 Google Web APIs <hr>
<FORM METHOD="get" ACTION="results.php">
<INPUT TYPE="text" NAME="q" VALUE="">
<INPUT TYPE="submit" VALUE="Search!">
</FORM>
然後將其內容轉成 utf-8 格式
iconv -f big5 -t utf-8 mysearch.big5 > mysearch.htm
5. 測試網頁
連接到 mysearch.htm , 隨便敲個關鍵字試看看
6. 詳細說明
http://www.digitalpoint.com/tools/search/
Your local mailer doesn't have the "A" flag specified. Edit the Mlocal line in sendmail.cf and add "A" to the flags listed after "F=".
horse 兄,這句應如何實現?
各位前輩,小弟今天第一次安裝與使用 FreeBSD,
但在學習的過程中,發現很多地方跟Linux不太一樣,
方便性也沒有那麼高,例如 vi 的編輯方式,不能使用 backspace 鍵消除文字,
或是使用 "/" 搜尋檔案內的文字,不會一次標起來,或是有顏色上的區分。
所以想請教各位前輩,要如何才能使 FreeBSD 的系統有顏色區分呢?
可能是剛學習,不太習慣的關係,但還是想請教各位一下。 ^^|||
麻煩各位前輩了,謝謝!