PHP 在 Windows 平台的大躍進

文章發佈於 : 2006-11-01 23:20:31 | 文章分類 : 程式相關
標籤 :

Zend 和 Microsoft 成功的提升了 PHP 在微軟作業系統的效能
這對於使用PHP作為開發的程式人員來說可以算是一個好消息
以往PHP似乎總是拿不上檯面

每當有大型專案要進行開發
總是想到Java, ASP 或者是 .NET
可是近幾年來Zend對於PHP的執行效能以及Open Source Project的努力
PHP的效能與接受度大幅的提升
採用PHP也成為進行大型專案開發的選項之一

這次 Microsoft 不僅在Windows 2003 Server 以及 Longhorn Server 這兩個伺服器作業系統
針對PHP做了效能上面的增強;
並且計畫將 A "production-quality" PHP runtime 安裝於 Windows XP, Windows Server 2003, Windows Vista and Longhorn Server 這幾個作業系統的IIS上.

顯示PHP已非昔日阿蒙,而是可以獨當一面的大將了

Zend signs PHP accord with Microsoft
 Love is waiting so you don't have to. Join Date.com for free!
 Join Asia FriendFinder the Largest Asian Dating Site on the Web for FREE!
 Kaspersky Security for Internet Gateway 7.0
 Know when to sell on eBay using research

閱讀全文 | 回 應(0) |

 簡單的密碼產生器

文章發佈於 : 2006-10-28 14:12:15 | 文章分類 : 程式相關
標籤 :

剛剛阿維的朋友問我說密碼產生器要怎麼寫
阿維就隨手寫了一個給他
順便放上來給有需要的人參考一下
<?php
function randomkeys($length){
    
$pattern "1234567890abcdefghijklmnopqrstuvwxyz";
    for(
$i=0;$i<$length;$i++){
        
$key .= $pattern{rand(0,35)};
    }
return 
$key;
}
echo 
"key = ".randomkeys(8)."";
?>



$pattern 這邊你可以放進密碼要包含的字元
randomkeys(8) 裡面的 8 則是你希望產生的密碼長度
 Love is waiting so you don't have to. Join Date.com for free!
 Join Asia FriendFinder the Largest Asian Dating Site on the Web for FREE!
 Kaspersky Security for Internet Gateway 7.0
 Know when to sell on eBay using research

閱讀全文 | 回 應(8) |

 關於 PHP 10件事 : 有可能是你不知道的或忽略的

文章發佈於 : 2006-10-28 01:44:32 | 文章分類 : 程式相關
標籤 :

阿維剛剛看到 10 things you (probably) didn't know about PHP 這篇文章

裡面說了十件關於PHP的事情
1. Use ip2long() and long2ip() to store IP addresses as integers instead of strings in a database.
2. Partially validate email addresses by checking that the domain name exists with checkdnsrr().
3. If you’re using PHP 5 with MySQL 4.1 or above, consider ditching the mysql_* functions for the improved mysqli_* functions.
4. Learn to love the ternary operator.
5. If you get the feeling that you might be reinventing the wheel during a project, check PEAR before you write another line.
6. Automatically print a nicely formatted copy of a page’s source code with highlight_file().
7. Prevent potentially sensitive error messages from being shown to users with the error_reporting(0) function.
8. Use gzcompress() and gzuncompress() to transparently compress/decompress large strings before storing them in a database.
9. Return multiple values from a function with “by reference” parameters.
10. Fully understand “magic quotes” and the dangers of SQL injection.

這10件事,有幾項阿維自己也都沒有去重視.
或許你會覺得這10件事情不是重點
不過阿維認為參考看看總是不錯的
 Love is waiting so you don't have to. Join Date.com for free!
 Join Asia FriendFinder the Largest Asian Dating Site on the Web for FREE!
 Kaspersky Security for Internet Gateway 7.0
 Know when to sell on eBay using research

閱讀全文 | 回 應(0) |

 你的PHP設定安全嗎?

文章發佈於 : 2006-10-28 01:36:29 | 文章分類 : 程式相關
標籤 :

阿維剛剛在網路上面看到一個蠻實用的工具
他會像 phpinfo(); 顯示你的 PHP 相關資訊
不過他更提供了安全性的建議
所有用紅色為底色的項目是屬於危險的設定
並且會提供建議更改的方式
建議有使用PHP的人都去用這個程式檢查一下你的 PHP 設定吧

PHP Security
 Love is waiting so you don't have to. Join Date.com for free!
 Join Asia FriendFinder the Largest Asian Dating Site on the Web for FREE!
 Kaspersky Security for Internet Gateway 7.0
 Know when to sell on eBay using research

閱讀全文 | 回 應(0) |

 BlogShares Links Exchange

1. Step into the Nexus 2. Scary Personals 3. Scared Bunny
4. This Is A Cult 5. Its all about me 6. Webby's World
7. Flower Delivery 8. Mindblogging Stuff 9. Random Thoughts by R. U. Serious
10. Palmistry and Hand Analysis 11. Forward-and-Share 12. The Site With the Lamp
13. Free Sample Forager 14. Kosir 15. CRM Reports

 阿維推薦

1. ㄚ凱隨手記 2. ↖「懿」*瘋*堂↗ 3. A.D. Notepad 西元記事本
4. Liang's Blog 5. 硬是要學! 6. 北國風情
7. 綠色工廠 8. 淡淡的天空藍 9. 班大貓廢紙塗鴉部落格
10. 大豆剝落殼 11. SEO网站优化推广 12. lazy Guy
13. PHP 黑店 14. Meson手扎

 Back Links