Apache DDOS mod_evasive20設定檔
LoadModule evasive20_module modules/mod_evasive20.so
DOSHashTableSize 3097 # 記錄黑名單的尺寸
DOSPageCount 2 # 每個頁面被判斷為dos攻擊的讀取次數
DOSSiteCount 50 # 每個站點被判斷為dos攻擊的讀取部件(object)的個數
DOSPageInterval 1 # 讀取頁面間隔秒
php execl dde
<?<br />
$excel =new COM(“Excel.Application”)or die(“Unable to instanciate Excel”);<br />
print “Loaded excel,version {$excel->Version}n”;<br />
$excel->Visible =0;<br />
$book=$excel->Workbooks->open(“c://dde.xls”);<br />
$sheet=$book->Worksheets(“Sheet1”);<br />
$a=$excel->DDEInitiate(“Excel”,“c://dde.xls”);<br />
$c =$excel->DDEExecute($a,“A1:D1”);<br />
<span style=“display: none;">(http://www.GetJetso.com - 著數網)</span> $Range=$sheet->Range(“A1:D1”);<br />
$cell=$Range->Cells(1,4);<br />
echo $cell->value;<br />
$excel->DDETerminate($a);<br />
$excel->Workbooks->Close();<br />
unset($excel);<br />
unset($a);<br />
?>
iPhone SDK 相關網站
iPhone SDK Core Web Sites
- iPhone Dev Center
- iPhone Developer Program
- iPhone Tech Talk World Tour
- Apple Developer Forums: iPhone Development
What is the iPhone SDK?
- iPhone OS – Wikipedia, the free encyclopedia
- iPhone SDK comparison chart – Engadget
- The unofficial iPhone SDK: Guide to writing native iPhone applications – iPhone Atlas
iPhone SDK Books
- The iPhone Developer’s Cookbook: Building Applications with the iPhone SDK (Developer’s Library)
- Beginning iPhone Development: Exploring the iPhone SDK (Beginning)
- iPhone SDK Development
- iPhone SDK Application Development: Building Applications for the AppStore
- iPhone in Action: Introduction to Web and SDK Development
- iPhone Programmer’s Road Map: A Guided Tour of the Official SDK
- iPhone SDK Programming: Developing Mobile Applications for Apple iPhone and iPod touch
- Xcode 3 Unleashed
- Cocoa(R) Programming for Mac(R) OS X (3rd Edition)
- Professional iPhone and iPod touch Programming: Building Applications for Mobile Safar
- Core Animation for Mac OS X and the iPhone: Creating Compelling Dynamic User Interfaces
iPhone SDK Forums
iPhone 註冊開發使用
當完成購買後 所登入頁面會是
並開始引導到註冊使用開發裝置畫面
輸入你所要的App ID
輸入供開發用的裝置 名稱簡介 並輸入裝置的uid
uid是裝置的獨立唯一的編碼 全世界只會有你這個編碼不會重複 可以在用xcode的device內看到
加入 iPhone Developer
話說iPhone 因該紅了一年多了…
一直沒機會用到他 直到最近聽到可以加入 iPhone 開發平台 並可以在上面開並發行應用程式而且
還可以賺錢
真是太致命的殺傷力…. 沒想到毒蘋果 要變甜了
Apache的rewrite的重寫相關的參數
Apache mod_rewrite規則重寫的標誌一覽
R[=code](force redirect) 強制外部重定向
強制在替代字符串加上http://thishost[:thisport]/前綴重定向到外部的URL.如果code不指定,將用缺省的302 HTTP狀態碼。
F(force URL to be forbidden)禁用URL,返回403HTTP狀態碼。
G(force URL to be gone) 強制URL為GONE,返回410HTTP狀態碼。
P(force proxy) 強制使用代理轉發。
L(last rule) 表明當前規則是最後一條規則,停止分析以後規則的重寫。
N(next round) 重新從第一條規則開始運行重寫過程。
C(chained with next rule) 與下一條規則關聯
如果規則匹配則正常處理,該標誌無效,如果不匹配,那麼下面所有關聯的規則都跳過。
T=MIME-type(force MIME type) 強制MIME類型
NS (used only if no internal sub-request) 只用於不是內部子請求
NC(no case) 不區分大小寫
QSA(query string append) 追加請求字符串
NE(no URI escaping of output) 不在輸出轉義特殊字符
例如:RewriteRule /foo/(.) /bar?arg=P1%3d$1 [R,NE] 將能正確的將/foo/zoo轉換成/bar?arg=P1=zed
PT(pass through to next handler) 傳遞給下一個處理
例如:
RewriteRule ^/abc(.) /def$1 [PT] # 將會交給/def規則處理
Alias /def /ghi
S=num(skip next rule(s)) 跳過num條規則
E=VAR:VAL(set environment variable) 設置環境變量
安裝php mssql 模組 使用FreeTDS編譯遇到的問題
freetds-0.82 目前檔案有所變動以致變異上造成錯誤
必須修改
ext/mssql/config.m4
檔案
Revision 1.9.2.2.2 | Revision 1.9.2.2.2.1 |
---|
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
… |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
IE6 卡到陰….
話說小弟開發某個web js 在ie6必須 按f5重整才能正常run…..
卡了很久起初懷疑沒有讀到js …………..
使用setTimeout(init, 100);
Zend Framework(一)
Zend Framework
**屁話:**寫這些東西是一方面紀錄,並希望再寫完文章時成功開發一個專案.
Zend Framework
我認為他是眾多”工具”的一個代表. 工具不就是要拿來用,
而我們程式開發用他我們就是使用著.所以很多人有不一樣的用法~~~
以下是我所規劃的理想用法 歡迎討論
筆記 有用的RC.CONF
sshd_enable=”YES”
syslogd_enable=”YES”
syslogd_flags=”-ss”
# 註:-s 是啟用安全模式,不記錄遠端傳送過來的 log
# 如果 -ss 是關閉 port,而且也禁止將 log 傳送到遠端的電腦。
sendmail_enable=”NO”
# 註:NO 是僅提供 localhost 的 mail 功能,如果要完全關閉 sendmail 要用 NONE
inetd_enable=”NO”
# 註:4.4-Release 版之後的 FreeBSD 預設 /etc/initd.conf 中的所有服務都是 # 註解掉的
# 如果你確定你的 Server 不提供 inetd 服務,可以加上這行
tcp_drop_redirect=”YES”
# Don’t allow remote OS fingerprinting of your box
icmp_drop_redirect=”YES”
# 註:防止 DoS 攻擊,最好把 ICMP 重導向的封包丟棄
icmp_log_redirect=”YES”
# 註:將丟棄的 ICMP 重導向封包 log 記錄下來
clear_tmp_enable=”YES”
# 開機時清除 /tmp 的內容
icmp_bmcastecho=”NO”
# 不回應 broadcast ping 封包
fsck_y_enable=”YES”
# 註:do fsck -y if the initial preen fails
update_motd=”NO”
# 註:update version info in /etc/motd (or NO)
named_enable=”YES”
# 提供 DNS 的服務
ntpdate_enable=”YES”
ntpdate_flags=”clock.stdtime.gov.tw”
# 開機自動校時
keyrate=”fast”
# 重覆按下按鍵的速度