¹ØÓÚphpα¾²Ì¬µÄÎÊÌâ
<?php
/*
¹¦ÄÜ£ºPHPα¾²Ì¬»¯Ò³ÃæµÄʵÏÖ
¾ßÌåÓ÷¨:
ÀýÈçÁ´½ÓΪ:test.php/year/2006/action/_add.html
mod_rewrite();
$yearn= $_GET["year"];//½á¹ûΪ'2006'
$action= $_GET["action"];//½á¹ûΪ'_add'
Power By:cnwbshow.com
E-mail:cnwbshow.@gmail.com
꿅᣼http://www.cnwbshow.com*/
function mod_rewrite(){
global $_GET;
$nav= $_SERVER["REQUEST_URI"];
$script_name= $_SERVER["SCRIPT_NAME"];
$nav=substr(ereg_replace("^ $script_name","",urldecode( $nav)),1);
$nav=preg_replace("/^.ht(m){1}(l){0,1} $/","", $nav);//Õâ¾äÊÇÈ¥µôβ²¿µÄ.html»ò.htm
$vars = explode("/", $nav);
for( $i=0; $i <Count( $vars); $i+=2){
¡¡ $_GET[" $vars[ $i]"]= $vars[ $i+1];
}
return $_GET;
}
ÕâÖÖ·½Ê½ÊµÏÖ£¬ÓиöÎÊÌâ¾ÍÊÇtest.phpÀïËùÓеÄͼƬµØÖ·¶¼±ä³ÉÁËtest.php/year/2006/actionÕâ¸öĿ¼ÏÂÁË£¬ÇëÎÊÔõô½â¾öÕâ¸öÎÊÌâѽ???????
Ïà¹ØÎÊ´ð£º
<?php
if($_SERVER['HTTP_REFERER']!=''){
@header("Content-type:image/jpeg");
echo file_get_contents("xlight.jpg");
}
else{
@header("location:ht ......
ÎÒÃÇÁ¥ÊôÖпÆÔº¼ÆËãËùÍøÂçÖصãʵÑéÊÒ(http://www.ict.ac.cn/survey/channel/detail443.asp)»ù´¡ÉèÊ©¿ÎÌâ×é.
ÏÖÒòÏîÄ¿ºÍÒµÎñÍØÕ¹µÄÐèÒª,ÌØÐèÒªÕÐƸÓëÏîÄ¿Ïà¹ØµÄÍøÂçÓ¦Óù¤³Ìʦ1-2Ãû¡£
¾ßÌåÒªÇóÈçÏ¡£ÓÐÒâÕß ......
ϵͳ£ºwin2003 + IIS 6.0
php ÊÇ×îеİ汾ÁË ¸ÕÏÂÔصÄ
°²×°µÄʱºòÑ¡Ôñ IIS FastCGIģʽ
°²×°³É¹¦ÁË
ÔËÐÐphpinfo ³É¹¦ÏÔʾ
ÔÚIISн¨ÍøÕ¾ µ¼ÈëÔÀ´ÔËÐÐÓÚapachµÄµÛ¹ú¹ÜÀíϵͳÍøÕ¾ ......
¸÷λºÃ,ÏÖÔÚÍøÂçÉÏÖ÷Á÷µÄphp CMSÏñµÛ¹ú,phpcms,Ö¯Ãεȶ¼ÊÇÉú³É¾²Ì¬Ò³ÃæµÄ,¶¼ÊDzÉÓÃÄ£°å,¸ÄÆðÀ´±È½Ï³ÔÁ¦,ÓÐûÓÐÄÇÖÖ¶¯Ì¬µÄ,¸ÄÆðÀ´·½±ãµãµÄ.. лл¸÷λÁË
ÄãÔÚºǫ́ÉèÖÃһϲ»Éú³É¾²Ì¬Ò³Ã棬²ÉÓö¯Ì¬ä¯ÀÀµÄ·½Ê½¾Í¿ÉÒÔÁ ......
ÇëÎÊÈç¹ûÀûÓÃÃüÁîÌáʾ·ûÔËÐÐphpÎļþÄØ£¿
ºÃÏñÊÇcmd£¬È»ºó½øµ½phpµÄbinĿ¼£¬È»ºó¾Í¿ÉÒÔÖ´ÐÐÁË£¬ÄǸöÊÇbinĿ¼°¡£¬ºÃÏñÕÒ²»µ½Õâ¸öĿ¼
1 windowsÏ php.exe ËùÔÚµÄĿ¼.
2 Èç¹û²»Ïë´øĿ¼ִÐÐ,¿ÉÒÔ½«php.exeËù ......