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

ÔÚIIS 5.1 »òIIS6 ÖÐÅäÖÃPHP µÄFastCGIģʽ


ÔÚIIS 5.1 »òIIS6 ÖÐÅäÖÃPHP µÄFastCGIģʽ
Ò»¡¢FastCGIÊÇʲô£¿
¡¡¡¡FastCGIÊÇÓïÑÔÎ޹صġ¢¿ÉÉìËõ¼Ü¹¹µÄCGI¿ª·ÅÀ©Õ¹£¬ÆäÖ÷ÒªÐÐΪÊǽ«CGI½âÊÍÆ÷½ø³Ì±£³ÖÔÚÄÚ´æÖв¢Òò´Ë»ñµÃ½Ï¸ßµÄÐÔÄÜ¡£ÖÚ
ËùÖÜÖª£¬CGI½âÊÍÆ÷µÄ·´¸´¼ÓÔØÊÇCGIÐÔÄܵÍϵÄÖ÷ÒªÔ­Òò£¬Èç¹ûCGI½âÊÍÆ÷±£³ÖÔÚÄÚ´æÖв¢½ÓÊÜFastCGI½ø³Ì¹ÜÀíÆ÷µ÷¶È£¬Ôò¿ÉÒÔÌṩÁ¼ºÃµÄÐÔÄÜ¡¢
ÉìËõÐÔ¡¢Fail-OverÌØÐԵȵȡ£
¶þ¡¢FastCGIµÄ¹¤×÷Ô­Àí£º
¡¡¡¡1¡¢Web Server Æô¶¯Ê±ÔØÈëFastCGI½ø³Ì¹ÜÀíÆ÷£¨IIS ISAPI»òApache Module£©;
¡¡¡¡2¡¢FastCGI½ø³Ì¹ÜÀíÆ÷×ÔÉí³õʼ»¯£¬Æô¶¯¶à¸öCGI½âÊÍÆ÷½ø³Ì (ÔÚÈÎÎñ¹ÜÀíÆ÷Öпɼû¶à¸öphp-cgi.exe)²¢µÈ´ýÀ´×ÔWeb ServerµÄÁ¬½Ó¡£
¡¡¡¡3¡¢µ±¿Í»§¶ËÇëÇóµ½´ïWeb Serverʱ£¬FastCGI½ø³Ì¹ÜÀíÆ÷Ñ¡Ôñ²¢Á¬½Óµ½Ò»¸öCGI½âÊÍÆ÷¡£Web server½«CGI»·¾³±äÁ¿ºÍ±ê×¼ÊäÈë·¢Ë͵½FastCGI×Ó½ø³Ìphp-cgi.exe¡£
¡¡¡¡4¡¢FastCGI×Ó½ø³ÌÍê³É´¦Àíºó½«±ê×¼Êä³öºÍ´íÎóÐÅÏ¢´ÓͬһÁ¬½Ó·µ»ØWeb
Server¡£µ±FastCGI×Ó½ø³Ì¹Ø±ÕÁ¬½Óʱ£¬ÇëÇó±ã¸æ´¦ÀíÍê³É¡£FastCGI×Ó½ø³Ì½Ó×ŵȴý²¢´¦ÀíÀ´×ÔFastCGI½ø³Ì¹ÜÀíÆ÷£¨ÔËÐÐÔÚ
WebServerÖУ©µÄÏÂÒ»¸öÁ¬½Ó¡£ ÔÚÕý³£µÄCGIģʽÖУ¬php-cgi.exeÔڴ˱ãÍ˳öÁË¡£
¡¡¡¡ÔÚÉÏÊöÇé¿öÖУ¬Äã¿ÉÒÔÏëÏóCGIͨ³£ÓжàÂý¡£Ã¿Ò»¸öWebÇëÇóPHP¶¼±ØÐëÖØнâÎöphp.ini¡¢ÖØÐÂÔØÈëÈ«²¿dllÀ©Õ¹²¢Öسõʼ»¯È«²¿Êý¾Ý½á¹¹¡£
ʹÓÃFastCGI£¬ËùÓÐÕâЩ¶¼Ö»ÔÚ½ø³ÌÆô¶¯Ê±·¢ÉúÒ»´Î¡£Ò»¸ö¶îÍâµÄºÃ´¦ÊÇ£¬³ÖÐøÊý¾Ý¿âÁ¬½Ó(Persistent database
connection)¿ÉÒÔ¹¤×÷¡£
Èý¡¢ÔÚIIS 5.1 »òIIS6 ÖÐÅäÖÃPHP µÄFastCGIģʽ
        ¼ÙÉèÄãÒѾ­³É¹¦°²×°Î¢ÈíµÄIIS 5.1 »ò IIS 6£¬½ÓÏÂÀ´½²½âÈçºÎÅäÖÃPHP µÄFastCGI ģʽ¡£
        Ê×ÏÈ£¬ÏÈ°²×°ÊÊÓÃÓÚ IIS 5.1 »ò IIS 6 µÄFastCGI À©Õ¹¡£Çëµ½ÏÂÃæµÄÁ´½ÓÏÂÔØÏà¹ØFastCGI À©Õ¹£º
                 http://www.iis.net/downloads/default.aspx?tabid=34&g=6&i=1521
                  µ«ÄãÔËÐÐFastCGI À©Õ¹°²×°³ÌÐòʱ£¬Ëü¿½±´ÏÂÁÐÎļþµ½"%WINDIR%\system32\inetsrv" Îļþ¼Ð£¬²¢×¢²á¿ªÆôIIS Ö§³ÖFastCGI À©Õ¹¡£¸Ã°²×°³ÌÐò½«¿½±´µÄÎļþÁбíÊÇ£º
       &nbs


Ïà¹ØÎĵµ£º

php strip_tagsº¯Êý

strip_tags
È¥µô HTML ¼° PHP µÄ±ê¼Ç¡£
Óï·¨: string strip_tags(string str);
·µ»ØÖµ: ×Ö·û´®
±¾º¯Êý¿ÉÈ¥µô×Ö·û´®Öаüº¬µÄÈκΠHTML ¼° PHP µÄ±ê¼Ç×Ö·û´®¡£ÈôÊÇ×Ö·û´®µÄ HTML ¼° PHP ±êÇ©Ô­À´¾ÍÓÐ´í£¬ÀýÈçÉÙÁË´óÓڵķûºÅ£¬ÔòÒ²»á·µ»Ø´íÎ󡣶ø±¾º¯ÊýºÍ fgetss() ÓÐ×ÅÏàͬµÄ¹¦ÄÜ
//×¢
strip Ó¢[strip]
vi. 1. Íѹâ ......

phpÖÐsession¹ýÆÚµ«¼Ç¼²¢²»É¾³ýµÄÔ­Òò


Ç°Ò»ÕóдÁËÒ»¸ö¼òµ¥µÄÀ࣬½«session´æÈëÊý¾Ý¿â£¬µ±session_destroy()ʱ»á½«¿âÖеÄsession¼Ç¼ɾ³ý£¬¶ø¹ýÁËmaxlifetimeʱsession¼Ç¼ȴ»¹ÔÚ£¬µ±Ê±ºÜ²»Àí½â¡£
½ñÌìÓÖ¿´ÁËÏÂphp.ini£¬ÕÒµ½Á˹ØÓÚsessionµÄÅäÖã¬Ã÷°×ÁËÔ­Òò¡£
; Define the probability that the 'garbage collection' process is started
; on every sessi ......

phpÏîÄ¿¿ò¼ÜÉè¼Æ

Ò»¡¢¸ÅÊö
ÒòΪ×î½üСÏîÄ¿±È½Ï¶à£¬¶øÇÒÏîÄ¿Ö®¼äµÄÖظ´¶ÈÓֱȽϴó£¬ËùÒÔ¸ãÁËÒ»¸öÏîÄ¿¿ò¼ÜËƵĶ«Î÷£¬±ß×ö±ßÐ޸ġ£
Ä¿Ç°ÀïÃæÒѾ­ÈÝÄÉÁ˲»ÉÙ¼¸¸öÏîÄ¿£¬Ò²¸ãÁËЩÀàËÆ»ù´¡¹¹¼þÒ»ÑùµÄ¶«Î÷£º
flykobe@105 quick $ ls -FX
 inc/      jzj/  m2/      mstatic/  t/     te ......

¹ØÓÚPHPµÄcall_user_funcµÄ·ÖÎö

·Ö±ðÏÂÔØÁËphp5.2.10ºÍ5.3.0°æ±¾µÄÔ´Â룬²éÕÒµ½ÀïÃæcall_user_function(ÔÚext/standard/basic_functions.c)µÄ·½·¨¡£
ÔÚ5.2.10°æ±¾Àcall_user_functionÓõÄÊDZê×¼µÄphp º¯ÊýµÄд·¨£¬ÓÃzvalÀàÐÍÀ´´æ´¢½ÓÊյIJÎÊý£¬µ÷ÓÃcall_user_function_exÀ´Ö´ÐÐÓû§µÄ·½·¨¡£Èç¹ûµ÷Óò»³É¹¦Ôò·ÖÎöÊDz»ÊǽÓÊÕµ½µÄ²ÎÊýÀïÓÐʲô´íÎó¡£
µ«Ô ......

PHPÈ¡¶þ½øÖÆÎļþÍ·¿ìËÙÅжÏÎļþÀàÐÍ


<?php
$filename
=
"
D:
\\
296.mid
"
;
$file
     =
fopen
(
$filename
,
"
rb
"
)
;
$bin
      =
fread
(
$file
,
2
)
;
//Ö»¶Á2×Ö½Ú
fclose
(
$file
)
;
$strInfo
  = @
unpack
(
"
c2chars
" ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ