Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

¶à¸öPHP°æ±¾ÔÚͬһIIS·þÎñÆ÷


ÕâƪÎÄÕ½éÉÜÈçºÎÅäÖÃIISÒÔÖ§³ÖÔÚͬһ̨·þÎñÆ÷µÄ¶à¸ö°æ±¾µÄPHP¡£ÕâÔÚÐèÒª²âÊÔ²»Í¬PHP°æ±¾Ó¦ÓóÌÐòµÄ¿ª·¢»·¾³Öа²×°ÊǷdz£ÓÐÓõġ£´ËÍ⣬Ëü¾­³£±»ÓÃÔÚÉú²ú»·¾³ÖУ¬Ðí¶àPHPÓ¦ÓóÌÐòפÁôÔÚͬһ̨·þÎñÆ÷ÉÏ£¬ÆäÖÐһЩÒÀÀµÓÚij¸öÌض¨µÄPHP°æ±¾¡£
ΪÁËÔÚͬһIIS·þÎñÆ÷ÉÏͬʱ°²×°¶à¸ö°æ±¾µÄPHP£¬±ØÐë°´ÕÕphp.netÎĵµIIS 5.1ºÍIIS 6.0¼°IIS 7.0ºÍ¸ü¸ß°æ±¾ÖÐÃèÊöµÄ²½ÖèÊÖ¶¯°²×°¡£²»ÒªÊ¹ÓÃPHPµÄWindows°²×°³ÌÐò£¬ÒòΪËü²»Ö§³Ö²¢Ðа²×°¡£
ÔÚÌض¨µÄPHP°æ±¾°´ÕÕ˵Ã÷°²×°Íê³Éºó£¬ÏÂÔØÁíÒ»¸ö°æ±¾µÄPHP£¬ÌáÈ¡µ½Ò»¸öµ¥¶ÀµÄĿ¼£¬²¢¸ù¾ÝÊÖ¹¤°²×°²½ÖèÀ´¶ÔËü½øÐÐÅäÖá£ÔÚ´ËÖ®ºó°´ÒÔÏÂ˵Ã÷ÅäÖÃÿһ¸öIIS·þÎñÆ÷£º
·        IIS 5.1
·        IIS 6.0
·        IIS 7.0ºÍ¸ü¸ß°æ±¾
×¢Ò⣺£ºÔÚÏÂÃæÁ½¸öPHP°æ±¾ÖеÄËùÓÐÀý×ÓÊÇ°²×°ÔÚͬһ̨·þÎñÆ÷ÉÏ¡£PHPµÄ5.2.11ÎļþλÓÚC£º\ PHP5211 \Ŀ¼ºÍPHP 5.3.1ÎļþλÓÚC£º\ PHP531 \Ŀ¼¡£
IIS 5.1ÖÐ
FastCGIÀ©Õ¹°ü¿ÉÅäÖõ½Í¬Ò»Ì¨·þÎñÆ÷ºÍÍøÕ¾¼¶±ð¡£ÒòΪ5.1ÖÐÖ»ÄÜÓÐÒ»¸öÍøÕ¾£¬Ëü²»ÊÇ¿ÉÒÔÅäÖÃËüÓÐÁ½¸ö°æ±¾µÄPHPÔÚͬһʱ¼äÔËÐС£µ«ÊÇ£¬¿ÉÄÜÓÐÒ»¸öÅäÖã¬ÔÊÐíÈÝÒ׵شÓÒ»¸ö°æ±¾Çл»µ½ÁíÒ»¸ö¡£
´ò¿ªIIS FastCGIÀ©Õ¹°üλÓÚ%windir%\system32\inetsrv\fcgiext.iniµÄÅäÖÃÎļþ¡£ÔÚ¸ÃÎĽáβ´¦½«ÓÐÒ»²¿·Ö¶¨ÒåFastCGIÓ¦ÓóÌÐò¡£Ëü¿ÉÄÜ¿´ÆðÀ´ÏñÕâÑù£º
[ÀàÐÍ]
PHP= php5211
 
[php5211]
ExePath = 磺\ php5211 \ PHP—cgi.exe
ÿµ±Ò»¸ö*. phpÎļþÌá³öÒªÇóʹÓÃPHP 5.2.11ÅäÖÃIIS¡£ÒªÇл»µ½PHP 5.3.1£¬Ìí¼ÓÁíÒ»²¿·ÖÉùÃ÷£¬È»ºóÐ޸IJ¿·ÖÈçÏ£º
[ÀàÐÍ]
; PHPµÄ= php5211
PHPµÄ= php531
 
[php5211]
ExePath = 磺\ php5211 \ PHP-gi.exe
 
[php531]
ExePath = 磺\ php531 \ PHP-i.exe
Çл»»Øµ½PHP 5.2.11¸üÐÂ[ÀàÐÍ]ͨ¹ý×¢ÊÍPHP= php531²¢È¡ÏûPHP= php5211¡£¸üÐÂfcgiexe.iniºóûÓбØÒªÖØÐÂÆô¶¯IIS¡£FastCGIµÄÀ©Õ¹°üÔÚÎļþ±£´æ֮ǰÒÑËѼ¯ºÃËùÓб仯¡£
IIS 6.0ÖÐ
ÔÚIIS 6.0µÄFastCGI¿ÉÒÔÅäÖÃÔÚ·þÎñÆ÷¼¶±ð£¬Õ⽫µ¼ÖÂËùÓÐIISÍøվʹÓÃÏàͬµÄPHP°æ±¾¡£ÔÚ·þÎñÆ÷¼¶±ðÅäÖÃFastCGIºÍPHP°æ±¾Ö®¼äÇл»¹ý³ÌºÍÅäÖÃIIS 5.1µÄ²½ÖèÊÇÒ»ÑùµÄ¡£
ÁíÍâFastCGI¿ÉÒÔÅäÖÃÔÚÍøÕ¾¼¶±ðÉÏ£¬Õ⽫ÔÊÐí²»Í¬µÄÍøվʹÓò»Í¬µÄPHP°æ±¾£¬Ö¸¶¨Ò»¸öÌض¨µÄPHP°æ±¾µÄÍøÕ¾£¬Ç


Ïà¹ØÎĵµ£º

php×Ö·û´®±È½ÏÓÃ==µÄÒ»¸ö½Ìѵ

Ò»Ö±ÈÏΪphpÖÐ×Ö×Ö·û´®±È½ÏÖ±½ÓÓÃ==À´Åжϻ¹ÊǺܷ½±ãµÄ,µ«½ñÌìÓöµ½µÄÒ»¸öÎÊÌâ,³¹µ×ÈÃÎÒÃ÷°×ÁËʹÓÃstrcmpµÄ±ØÒªÐÔ.Õâ¸öÎÊÌâºÜ¶àÀÏÊÖ¶¼¿ÉÄÜ»áºöÂÔµÄ.
½ñÌìÔڵǼ×Ô¼º×öµÄ³ÌÐòʱ,ÔÚÊäÈëÑéÖ¤Âëºó,ÏëÖ±½Ó°´Ð¡¼üÅÌÉϻسµµÇ¼(³ÌÐò¼ì²éÁ˻سµÊ¼þ)£¬½á¹û°´»Ø³µ°´³ÉÁ˼üÅÌÉϻسµ¼üÅÔ±ßСÊýµÄÄǸö¼ü,ÑéÖ¤ÂëÀ¸¾Í¶àÊäÈëÁËÒ»¸öµã¡£ÓÉÓÚ ......

php ·À×¢Èë¹¥»÷º¯Êý

/*php ·À×¢È뺯Êý
string  $feifa  ÏÞÖÆÔªËØ×é³É
ÈçÓзǷ¨×Ö·ûÌøתµ½ÉÏÒ»Ò³ ·µ»Ø 0  Ã»Óзµ»Ø 1
*/
//ʹÓ÷½·¨
//$feifa=array("select","delete","from","update","create","destory","drop","alter" ......

php»ñÈ¡³ÌÐòÖ´ÐеÄʱ¼ä

ÔÚhead.htmÖмÓÈ룬Ҳ¾ÍÊÇÔÚĬÈÏÄ£°æÖÐÌí¼Ó“$stime=microtime(true); //»ñÈ¡³ÌÐò¿ªÊ¼Ö´ÐеÄʱ¼ä”
¾ä
<!--<?php
$stime=microtime(true); //»ñÈ¡³ÌÐò¿ªÊ¼Ö´ÐеÄʱ¼ä
$GuideFid[$fid]=str_replace("<a href='$webdb[www_url]' class='guide_menu'>>Ê×Ò³</a>","",$GuideFid[$fid]);
$f ......

ÊÕ²ØÒ»¸öphpͼƬ´¦ÀíÀà

ʹÓ÷½·¨:
×Ô¶¯²ÃÇÐ:
³ÌÐò»á°´ÕÕͼƬµÄ³ß´ç´ÓÖв¿²ÃÇÐ×î´óµÄÕý·½ÐΣ¬²¢°´Ä¿±ê³ß´ç½øÐÐËõÂÔ
  
    $t->setSrcImg("img/test.jpg");
    $t->setCutType(1);//ÕâÒ»¾ä¾ÍOKÁË
    $t->setDstImg("tmp/new_test.jpg");
    $t-&g ......

301Öض¨ÏòÉèÖü°³ÌÐò´úÂëʵÏÖÈ«¼¯(ASP|.NET|PHP|JSP)

Ê×ÏÈÉêÃ÷£ºÕâ¸öÊÇÎÒתÔصģ¬ÖÂÁ¦ÓÚΪÏñÎÒÒ»ÑùµÄÐÂÊÖÌṩ°ïÖú£¡
1¡¢IISÏÂ301ÉèÖà InternetÐÅÏ¢·þÎñ¹ÜÀíÆ÷ -> ÐéÄâĿ¼ -> Öض¨Ïòµ½URL£¬ÊäÈëÐèҪתÏòµÄÄ¿±êURL£¬²¢Ñ¡Ôñ“×ÊÔ´µÄÓÀ¾ÃÖض¨Ïò”¡£
2¡¢ASPϵÄ301תÏò´úÂë
<%@ Language=VBScript %>
<%
Response.Status=”301 Moved Permanent ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ