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

ʵ¼Ê¿ª·¢ÖпÉÄÜÓõ½µÄPHPµÄ×Ö·û´®²Ù×÷º¯Êý(×ܽá)

ÔÚ±à³ÌµÄ¹ý³Ìµ±ÖÐ,×Ö·û´®µÄ²Ù×÷ÊǷdz£ÖØÒªµÄ²¢ÇÒ¾­³£»á±»Óõ½,×Ö·û´®³£ÓõIJÙ×÷¾ßÌåµÄ°üÀ¨×Ö·û´®µÄÆ´½Ó,Ìæ»»×Ö·û´®,²éÕÒ×Ö·û´®,±È½Ï×Ö·û´®,¸´ÖÆ×Ö·û´®ÒÔ¼°¼ÆËã×Ö·û´®µÄ³¤¶ÈµÈµÈ.
1,Æ´½Ó×Ö·û´®
Æ´½Ó×Ö·û´®ÊÇ×î³£Óõ½µÄ×Ö·û´®²Ù×÷Ö®Ò»,ÔÚPHPÖÐÖ§³ÖÈýÖÖ·½Ê½¶Ô×Ö·û´®½øÐÐÆ´½Ó²Ù×÷,·Ö±ðÊÇÔ²µã.·Ö¸ô·û{}²Ù×÷,»¹ÓÐÔ²µãµÈºÅ.=À´½øÐвÙ×÷,Ô²µãµÈºÅ¿ÉÒÔ°ÑÒ»¸ö±È½Ï³¤µÄ×Ö·û´®·Ö½âΪ¼¸ÐнøÐж¨Òå,ÕâÑù×öÊDZȽÏÓкô¦µÄ.
2,Ìæ»»×Ö·û´®
ÔÚPHPÕâÃÅÓïÑÔÖÐ,ÌṩÁËÒ»¸öÃû×Ö½Ð×ösubstr_replace()µÄº¯Êý,¸Ãº¯ÊýµÄ×÷ÓÿÉÒÔ¿ìËÙµÄÍê³ÉɨÃèºÍ±à¼­Îı¾ÄÚÈݽ϶àµÄ×Ö·û´®Ìæ»»¹¦ÄÜ.ËûµÄÓï·¨¸ñʽ:
 mixed substr_replace(mixed $string,string $replacement, int $start[,int $length])
 ¶ÔÓÚÉÏÃæµÄÓï·¨¸ñʽµÄ˵Ã÷:
 string ÊÇÒª¼ì²é»òÕß½«Òª±»Ìæ»»µÄ×Ö·û´®
 replacement Ö¸¶¨ÒªÓÃÀ´²åÈë»òÕßÌæ»»µÄ×Ö·û´®
 start Ö¸¶¨ÔÚ×Ö·û´®µÄºÎ´¦½øÐпªÊ¼Ìæ»»,Õâ¸ö²ÎÊý¿ÉÒÔÈ¡ÈýÖÖÀàÐ͵ÄÖµ(ÕýÊý:´Ó×Ö·û´®¿ªÍ·µÄµÚstart¸öÆ«ÒÆÁ¿¿ªÊ¼Ìæ»»,¸ºÊý,´Ó×Ö·û´®½áβ´¦µÄµÚstart¸öÆ«ÒÆÁ¿¿ªÊ¼Ìæ»»,0:´Ó×Ö·û´®ÖеĵÚÒ»¸ö×Ö·û¿ªÊ¼Ìæ»»)
 lengthÖ¸¶¨ÒªÌæ»»¶àÉÙ¸ö×Ö·û,Õâ¸ö²ÎÊýÒ²¿ÉÒÔÈ¡ÈýÖÖÀàÐ͵ÄÖµ(ÕýÊý:±»Ìæ»»µÄ×Ö·û´®µÄ³¤¶È,¸ºÊý:´Ó×Ö·û´®µÄ½áβ¿ªÊ¼±»Ìæ»»µÄ×Ö·û´®µÄ³¤¶È,0:ÊDzåÈë²Ù×÷,¶ø²»ÊÇÌæ»»²Ù×÷);
3,¼ÆËã×Ö·û´®
1)¼ÆËã×Ö·û´®µÄ³¤¶È
 ÔÚPHPÖÐ,strlen()º¯ÊýÓÃÀ´¼ÆËã×Ö·û´®µÄ³¤¶È²¢ÇÒ·µ»Ø¸Ã×Ö·û´®µÄ³¤¶ÈÐÅÏ¢.¸ÃÓï·¨µÄ¸ñʽÈçÏÂ:int strlen(string $string)¸ñʽÀïÃæµÄstring¾ÍÊÇÓÃÀ´Ö¸¶¨Òª¼ÆË㳤¶ÈµÄ×Ö·û´®.
2)¼ÆËã×Ö·û´®µÄÊýÄ¿
 ÔÚPHPÖÐ,substr_count()º¯Êý,¿ÉÒÔÓÃÀ´·Ç³£·½±ã¶øÇÒ׼ȷµÄÈ·¶¨Ò»¸öÖ¸¶¨µÄ×Ó×Ö·û´®ÔÚËùÌṩµÄ×Ö·û´®ÖÐÓжàÉÙ¸ö,substr_count()º¯ÊýµÄÓï·¨¸ñʽÈçÏÂ:int substr_count(string $haystack,string $needle[,int $offset=0[,int $length]])ÔÚÉÏÃæµÄÓï·¨ÖÐÉè¼ÆµÄ²ÎÊýµÄ˵Ã÷ÈçÏÂ:haystackÖ¸¶¨Òª¼ì²éµÄ×Ö·û´®,needleÓÃÀ´Ö¸¶¨Òª²åÈëµÄ×Ö·û´®,offsetÓÃÀ´Ö¸¶¨ÔÚ×Ö·û´®Öкδ¦¿ªÊ¼ËÑË÷,ĬÈÏֵΪ0,lengthÓÃÀ´Ö¸¶¨ËÑË÷µÄ³¤¶È.
 ÔÚPHPÖÐ,str_word_count()º¯Êý,¿ÉÒÔÓÃÀ´·Ç³£·½±ã¶øÇÒ׼ȷµÄÈ·¶¨Ò»¸öijһ¸öµ¥´ÊÔÚËùÌṩµÄ×Ö·û´®ÖÐÓжàÉÙ¸ö,str_word_count()º¯ÊýµÄÓï·¨¸ñʽÈçÏÂ:mixed str_word_count(string $string[,int $format=0[,string $charlist]])ÔÚÉÏÃæµÄÓï·¨ÖÐÉæ¼°µ½µÄ²ÎÊýµÄ˵Ã÷ÈçÏÂ:stringÓÃÀ´Ö¸¶¨Òª½øÐмì²éµÄ×Ö·û´®,formatÓÃÀ


Ïà¹ØÎĵµ£º

PEAR¼ò½é:ÓÃPEARÀ´Ð´ÄãµÄÏÂÒ»¸öphp³ÌÐò


PEAR¼ò½é:ÓÃPEARÀ´Ð´ÄãµÄÏÂÒ»¸öphp³ÌÐò
 
ÎĵµÑ¡Ïî
´òÓ¡±¾Ò³
½«´ËÒ³×÷Ϊµç×ÓÓʼþ·¢ËÍ
¼¶±ð£º ³õ¼¶
ÅË·²(Night Sailer) (nightsailer@hotmail.com), ¹¤³Ìʦ, ±±¾©ÈüµÏÊý¾ÝÓÐÏÞ¹«Ë¾
2001 Äê 6 ÔÂ 01 ÈÕ
Äã¿ÉÄÜÒѾ­ÊǸöPHPµÄÀÏÊÖÁË£¬Ð´Á˺ܶà·Ç³£°ôµÄ´úÂë¡£µ«ÊÇ£¬Èç¹ûÄãÏÖÔÚÒª°ÑËüÃǼÓÈëµ½ÄãÏÖÔÚµÄÏîÄ¿ÖÐÈ¥£¬ÊÇ ......

FCKeditor µÄÅäÖúÍʹÓ÷½·¨(for PHP)

  FCKeditor ÊÇÒ»¸öÊ®·ÖÇ¿´óµÄÍøÒ³Îı¾±à¼­Æ÷£¬ËüÖ§³Ö¶àÖֽű¾±à³ÌÓïÑÔ(°üÀ¨ PHP)ºÍÖ§³Ö¶à¹úÓïÑÔ¡£
    FCKeditor ½ØÖÁ 2008Äê4ÔÂ6ÈÕ£¬Æä×îа汾ÊÇ 2.6RC£¬RC ¾ÍÊÇ Release Candidate£¬ÐÞ¶©ºóµÄºòÑ¡°æ±¾£¬ºÜ¿ÉÄÜ×÷Ϊ¸Ã°æ±¾µÄÎȶ¨°æÔÚδÀ´·¢²¼¡£Ä¿Ç°µÄ×îеÄÎȶ¨°æ(Latest Stable)ÊÇ 2.5.1¡£ÎÒÃÇ¿ÉÒÔµ ......

PHP°²×°²½Ö裨ÒÔapache 2 + php5.3ΪÀý£©

1.     
Download Apache for windows MSI
file, and run it
By
default, port is 80, root dir is %apache_dir%/htdocs. You can update the
settings in conf/httpd.conf file
2.  If Apache Service can't be installed in "Control Panel > Admin Tools > Services&quo ......

[ת]ÓÃphp_screw¼ÓÃÜPHP´úÂë

¿ªÊ¼Ö®Ç°£¬Ê×ÏÈÒª³ÎÇåÁ½¸öÎÊÌ⣺µÚÒ»£¬Ö§³Ö¿ªÔ´£¬²»µÈÓÚ·´¶Ô´úÂë¼ÓÃÜ£»µÚ¶þ£¬Èç¹û°Ñ²»ÊôÓÚ×Ô¼ºµÄ¶«Î÷£¨±ÈÈ繫˾µÄ£©ÄÃÈ¥¿ªÔ´£¬¾Í¸ü¼Ó²»Ó¦¸ÃÁË¡£
ÒÔÇ°ÖªµÀµÄ£¬PHP´úÂëµÄ¼ÓÃܶ¼ÊÇÓÃZendµÄencoder£¬ÕⶫÎ÷²»µ«ÊÇÉÌÒµÈí¼þ£¬ºÃÏñ»¹±©³ö¹ýÄܹ»±»ÆƽâµÄÎÊÌ⣬ËùÒÔ¾ÍÕÒµ½ÁËÌæ´úµÄ·½°¸©¤©¤©¤©¤php_screw£¬Ò»¸öÈÕ±¾ÈË¿ª·¢µÄ¶«¶«¡£
p ......

PHP Session ±äÁ¿

µ±ÄúÔËÐÐÒ»¸öÓ¦ÓóÌÐòʱ£¬Äú»á´ò¿ªËü£¬×öЩ¸ü¸Ä£¬È»ºó¹Ø±ÕËü¡£ÕâºÜÏñÒ»´Î»á»°¡£¼ÆËã»úÇå³þÄãÊÇË­¡£ËüÖªµÀÄãºÎʱÆô¶¯Ó¦ÓóÌÐò£¬²¢ÔÚºÎʱÖÕÖ¹¡£µ«ÊÇÔÚÒòÌØÍøÉÏ£¬´æÔÚÒ»¸öÎÊÌ⣺·þÎñÆ÷²»ÖªµÀÄãÊÇË­ÒÔ¼°Äã×öʲô£¬ÕâÊÇÓÉÓÚ HTTP µØÖ·²»ÄÜά³Ö״̬¡£
ͨ¹ýÔÚ·þÎñÆ÷ÉÏ´æ´¢Óû§ÐÅÏ¢ÒÔ±ãËæºóʹÓã¬PHP session ½â¾öÁËÕâ¸öÎÊÌ⣨±ÈÈç ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ