α¾²Ì¬URLÖØÐ´¼¼ÊõʵÏÖ·½·¨ php asp
α¾²Ì¬Óõ½ÖªÊ¶ºÜ¼òµ¥Ò»µ©Ñ§»á£¬¿ìÀÖÎÞÇֻÐèÒªÕýÔòºÍ·þÎñÆ÷ÉèÖá£
ÏÈ˵iisÈçºÎÉèÖðɣ¬ÍùÏ¿´
ÏÂÔØ(IIS RewriteÄ£¿é): http://www.isapirewrite.com/,ÏȰѲúÆ·ÏÂÔØÏÂÀ´,°²×°ÔÚ·þÎñÆ÷ÉÏ,¼ÇסĿ¼,»áÓÐÀàËÆRewrite.dllµÄÎļþÉú³É,MMC→IISÐÅÏ¢·þÎñ¹ÜÀíÆ÷→ÍøÕ¾→ÄúµÄÕ¾µã→ÊôÐÔ,ÔÚ“ISAPIɸѡÆ÷”Ïîµã»÷ “Ìí¼Ó”£¬ ɸѡÆ÷Ãû³ÆÌîÈëRewrite£¬¿ÉÖ´ÐÐÎļþΪRewrite.dlÕâ¸öÎļþ.
È»ºóÐÞ¸Ähttpd.iniÅäÖÃÎļþ,Èç¹û²»Ì«ÊìϤ,¾ÍÔÚhttp://www.isapirewrite.cn/docs¿´¿´ÊÖ²á,Ñо¿È¥,Èç´Ë:
[ISAPI_Rewrite]
CacheClockRate 3600
RewriteRule ^(.*)/([a-z0-9A-Z\-]+\.html)$ $1/default.asp\?id=$2
Õâ¸öÅäÖúÃÁ˾ÍÄÜÔÚdefault.asp»ñÈ¡²ÎÊýÁË,ûÎÊÌâ°Ñ,˳±ãһ˵,ÕýÔòÓ÷¨ÀïÃæ×îÖØÒªµÄ·ûºÅ^Æ¥Å俪ͷ,$Æ¥Åä½áβ,\wÆ¥ÅäÈκÎ×Ö·û,\sÆ¥Åä¿Õ°×,+Æ¥ÅäÖÁÉÙÒ»,*Æ¥ÅäÖÁÉÙ0,[x,]Æ¥ÅäÖÁÉÙx,()ÊÇ·Ö×é¼¼Êõ,º¹,Õâ¶«Î÷²»ËµÁË,Ì«ÈõÁË.
ÏÂÃæËµapache(Unixƽ̨×îÁ÷ÐеÄWEB·þÎñÆ÷ƽ̨)µÄÖØÐ´¼¼Êõ,»ù±¾ÀàËÆ,Ö»²»¹ý,apacehÖ§³Ö¸üÁé»îµÄ.htaccess,Äã´´½¨Ò»¸öÎļþ,ÎļþÃû¾ÍÊÇ.htaccess:ÄÚÈÝ:
RewriteEngine On
RewriteRule ^([a-z0-9A-Z\-]+\.html)$ default.php\?id=$1
¾ÍÕâÑù,¸ã¶¨Ö®.×¢Òâ,±ØÐëÒª¿Õ¼äÖ§³Ö Rewrite ÒÔ¼°¶ÔÕ¾µãĿ¼ÖÐ .htaccess µÄÎļþ½âÎö,²ÅÓÐЧ.
ÈçºÎÈÿռäÖ§³ÖRewrite ºÍ .htaccess µÄÎļþ½âÎöÄØ ÍùÏ¿´
µÚÒ»²½:ÎÒÃÇÒªÕÒµ½apache(Unixƽ̨×îÁ÷ÐеÄWEB·þÎñÆ÷ƽ̨)°²×°Ä¿Â¼ÏµÄhttpd.cofÎļþ,ÔÚÀïÃæÕÒµ½
<Directory />
Options FollowSymLinks
AllowOverride none
</Directory>
°Ñnone¸Äall,
µÚ¶þ²½£ºÕÒµ½Ò»ÏÂÄÚÈÝ
#LoadModule rewrite_module modules/mod_rewrite.so
¸ÄΪ
LoadModule rewrite_module modules/mod_rewrite.so
µÚÈý²½¾ÍÊÇ×îÀ§Äѵ쬱£´æÖØÆôapache(Unixƽ̨×îÁ÷ÐеÄWEB·þÎñÆ÷ƽ̨)ÁË¡£ ÐèÒª×Ô¼ºÓÃÐÄÑо¿ÁË¡£
ʣϵľÍÊDzâÊÔÁË¡£¡£ÒÔÉÏÉèÖÃÎÒ¶¼²âÊÔͨ¹ýÁË¡£
Ïà¹ØÎĵµ£º
¶ÔÓÚ³õѧÕßÀ´Ëµ£¬ÎÒÃÇÓÐʱºò»á¿´¼ûPHPÖÐÓÐÕâÑùµÄд·¨£º
@ unlink($filepath);
Ò²¿ÉÒÔд³É£º
unlink($filepath);
²»Ã÷°×ÕâÁ½ÖÖд·¨ÓÐÊ²Ã´Çø±ð£¬±íÃæÉÏ£¬³ÌÐòÔËÐÐÆðÀ´ËƺõÃ»Ê²Ã´Çø±ð¡£
ʵ¼ÊÉÏ£¬¼ÓÉÏ@·ûºÅ£¬ÓÐÒÖÖÆ´íÎóÏÔʾµÄ¹¦ÄÜ¡£
¾ÍÄÃÉÏÃæµÄ´úÂëÀ´Ëµ£¬È¥µô@ʱ£¬
Èç¹û±»É¾³ýµÄÎļþ²»´æÔڵϰ£¬Ôò»áÏÔʾÎļþ²»´æÔڵĴíÎ ......
<?php
if (!get_magic_quotes_gpc()) {
add_slashes($_GET);
add_slashes($_POST);
add_slashes($_COOKIE);
}
function add_slashes($string) {
if (is_array($string)) {
foreach ($string as $key => $value) {
$string ......
»¨ÁËÈýÌìµÄʱ¼ä£¬ÖÕÓÚÀûÓÃphp+mysqlÖÆ×÷Á˸öÔÚÏ߱ʼDZ¾£¬±¾À´ÊÇÔÚÍøÉÏÕÒÁËһЩµ¥»úµÄ¼Çʱ¾£¬
ÎÒ¿¿£¬Òª²»ÊÇÐèҪע²áÂ룬Ҫ²»ÊDz»·ûºÏ×Ô¼ºµÄÐèÇó£¬ÔÙ˵µ¥»úµÄÐèÒªÔÚ±¾µØ°²×°¡£
Ö÷ÒªµÄÄ¿µÄÊÇÓÃÀ´×öÒ»¸ötodo list¹¦ÄÜ£¬Ä¿Ç°Ö§³ÖµÄ¹¦ÄܱȽϼòµ¥£ºÔö¼Ó£¬É¾³ý£¬Í³¼Æ£¬
ÉÏ´«Îļþ£¬ÀûÓÃfckeditor½øÐб༣¬°²È«·½Ãæ×öÁËЩ¼òµ¥´ ......
¿Õ¼ä˵Ã÷£º (À´×ÔÕʺţºwujiapµÄÍÆ¹ã)
1¡¢Ö§³ÖASP¡¢PHP¡¢HTML
2¡¢Ö§³ÖFTPÉÏ´«£¨100M£©
3¡¢¼¼ÊõÖ§³Ö--BBSµçÄÔÂÛ̳.
4¡¢Ìṩ50M MySqlÊý¾Ý¿âʹÓÃ.
5¡¢ÌṩÃâ·Ñ¶þ¼¶ÓòÃû
6¡¢Ìṩ¶¥¼¶ÓòÃû°ó¶¨·þÎñ
7¡¢Ö§³Ö¿ØÖÆÃæ°æ¶ÀÁ¢×ÔÖú¹ÜÀí
8¡¢Ãâ·Ñ¿Õ¼äÏÞÖÆIISÁ¬½ÓÊý=(100)
9¡¢¿Õ¼äËÙ¶È¿ÉÒÔ·ÃÎÊGhostXpÏÂÔØÕ¾²âÊÔ
Èø ......
µÚÒ»²½ °²×°MySQL
[root@localhost usr]# groupadd mysql
[root@localhost usr]# useradd -g mysql mysql
[root@localhost usr]# cd /usr/local
[root@localhost local]# tar -zxvf mysql-5.0.51.tar.gz
[root@localhost local]# cd mysql-5.0.51
[root@localhost mysql-5.0.51# ./configure --prefix=/usr/local/my ......