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

ΪPHPÌí¼ÓmcryptÀ©Õ¹Ä£¿é

»ù±¾Ô­ÀíÊÇ£ºÊ×ÏÈʹmcryptÈí¼þÄܹ»ÔËÐУ¬È»ºó°²×°phpÀ©Õ¹Ä£¿é£¬²¢ÔÚphp.iniÅäÖá£
ÕâÀï×¢ÒâµÄÊÇmcryptÈí¼þÒÀÀµlibmcryptºÍmhashÁ½¸ö¿â£¬ËùÒÔ°²×°ÅäÖÃ˳Ðò´ÓÓÒÖÁ×ó
Ò»,ÏÂÔØ°²×°mcrypt
1.ÏÈÈ¥http://www.sourceforge.netÏÂÔØLibmcrypt,mhash,mcrypt°²×°°ü ,ÏÂÃæÊÇÎÒÕÒµ½µÄÁ´½Ó
   Libmcrypt(libmcrypt-2.5.8.tar.gz )£º
   mcrypt(mcrypt-2.6.8.tar.gz ):
   mhash(mhash-0.9.9.9.tar.gz ):
2 .ÏÈ°²×°Libmcrypt
#tar -zxvf libmcrypt-2.5.8.tar.gz
   #cd libmcrypt-2.5.8
   #./configure
   #make
   #make install ˵Ã÷£ºlibmcriptĬÈÏ°²×°ÔÚ/usr/local
3.°²×°mhash
   #tar -zxvf mhash-0.9.9.9.tar.gz
   #cd mhash-0.9.9.9
   #./configure
   #make
   #make install
4.°²×°mcrypt
   #tar -zxvf mcrypt-2.6.8.tar.gz
   #cd mcrypt-2.6.8
   #LD_LIBRARY_PATH=/usr/local/lib ./configure
   #make
   #make install
   ˵Ã÷£ºÓÉÓÚÔÚÅäÖÃMcryptʱ£¬»áÕÒ²»µ½libmcryptµÄÁ´½Ó¿â£¬µ¼ÖÂÎÞ·¨±àÒ룬ÒòΪLibmcryptµÄÁ´½Ó¿âÔÚ/usr/local/Îļþ¼ÐÏ¡£ÒòЩÔÚÅäÖÃmcryptʱҪ¼ÓÈëLD_LIBRARY_PATH=/usr/localµ¼Èë¼ü½Ó¿â
¶þ, °²×°PHPÀ©Õ¹Ä£¿é
1. ¾²Ì¬±àÒë
ÔÚÈÎÒâPHPÎļþÖмÓÈ뺯Êý phpinfo()£¬¼´¿ÉÈ¡µÃÄ¿Ç°PHPµÄÅäÖÃ
ÔÚÕâЩÅäÖúóÃæÐÂÔöÐèÒª¼ÓÈëµÄÅäÖ㺒–with-mcrypt=/usr/local/include’
È»ºó½øÈëphpÔ´´úÂëĿ¼£¬Ö´ÐÐÕâÌõÍêÕûµÄconfigureÃüÁî
ÅäÖÃÍê³É£¬ÏÂÃæ½øÐÐÔ´Âë°üµÄÖÆ×÷ºÍ°²×°
make clean £¨Ò»¶¨ÐèÒª£©
make
make install
2. ¶¯Ì¬¼ÓÔØ
ʹÓÃphpµÄ³£¼ûÎÊÌâÊÇ£º±àÒëphpʱÍü¼ÇÌí¼ÓijÀ©Õ¹£¬ºóÀ´ÏëÌí¼ÓÀ©Õ¹£¬µ«ÊÇÒòΪ°²×°phpºóÓÖ×°ÁËһЩ¶«Î÷ÈçPEARµÈ£¬²»Ïëɾ³ýĿ¼ÖØ×°£¬ÓÚÊÇ¿ÉÒÔ²ÉÓÃphpize¡£·½·¨ÊÇ£º
ÒªÓÐÓëÏÖÓÐphpÍêÈ«ÏàͬµÄphpѹËõ°ü ¡£ÎÒÓõÄÊÇphp-5.2.6.tar.gz¡£Õ¹¿ªºó½øÈëÀïÃæµÄext/mcryptĿ¼ (ÀïÃæÊÇmcryptµÄphpÀ©Õ¹)£¬È»ºóÖ´ÐÐ/usr/local/php/bin/phpize¡£phpizeÊÇ°²×°phpʱ°²×°ºÃµÄÒ»¸ö¹¤¾ß£¬Èç¹ûÄãµÄ»úÆ÷ûÓа²×°phpize¹¤¾ß£¬ÄÇô¿ÉÄÜ»¹ÊÇÒªmake,make install php£¬½ö½öΪÁ˵õ½phpize.
Ö´ÐÐÍêºó£¬»á·¢ÏÖµ±Ç°Ä¿Â¼Ï¶àÁËһЩconfigureÎļþ£¬Èç¹ûû±¨´í£¬Ôò¸ù¾ÝÌáʾÔËÐÐ
   .


Ïà¹ØÎĵµ£º

40¸ö¼¼ÇÉÓÅ»¯ÄúµÄPHP´úÂë

  ·¢²¼Ê±¼ä:2009-11-17 11:15 ¡¡×÷Õß: PHPChina ¡¡ÐÅÏ¢À´Ô´: PHPchina¡¡ ·¢±íÆÀÂÛ
1.Èç¹ûÒ»¸ö·½·¨Äܱ»¾²Ì¬£¬ÄǾÍÉùÃ÷ËûΪ¾²Ì¬µÄ£¬ËٶȿÉÌá¸ß1/4;
2.echoµÄЧÂʸßÓÚprint,ÒòΪechoûÓзµ»ØÖµ£¬print·µ»ØÒ»¸öÕûÐÍ;
3.ÔÚÑ­»·Ö®Ç°ÉèÖÃÑ­»·µÄ×î´ó´ÎÊý£¬¶ø·ÇÔÚÔÚÑ­»·ÖÐ;
4.Ïú»Ù±äÁ¿È¥ÊÍ·ÅÄڴ棬ÌرðÊÇ´óµÄÊý×é;
5.±ÜÃâÊ ......

php JSON


JSON ÊÇÒ»ÏîÖ¼ÔÚÔÊÐíÖмä¼þ´´½¨Ê¹Óà JavaScript ¹ÌÓиñʽµÄ¶ÔÏóµÄЭÒé¡£Ëü×îÇ¿´óµÄÊôÐÔÊÇËüÊÇÒ»ÖÖÇáÁ¿¼¶Ð­Òé¡£¼òµ¥´¦Àí RSS ¾ÛºÏ»ò recipe Áбíʱ£¬Äú²»ÐèÒªÔÚ JavaScript ÖÐʹÓà XML µÄÈ«²¿¹¦ÄÜ¡£²»ÐèÒªÑéÖ¤¸ñʽ»òÈ·±£ÑϸñµÄÊý¾Ý¼üÈë¡£
±àÂëºÍ½âÂë
ÓÐÁ½¸öº¯ÊýÓÃÓÚ JSON£ºencode ºÍ decode¡£µÚÒ»¸öº¯Êý½«°ÑÈÎÒâÀàÐ͵ÄÊý ......

PHPÊýѧº¯Êý£¨È«£©


Êýѧº¯Êý
Abs
º¯ÊýÃèÊö£ºmixed abs(mixed number);
·µ»ØÖµ£ºº¯Êýabs·µ»Ø²ÎÊýnumberµÄ¾ø¶ÔÖµ¡£
Acos
º¯ÊýÃèÊö£ºdouble acos(double number);
·µ»ØÖµ£ºº¯Êýacos·µ»Ø²ÎÊýnumberµÄ·´ÓàÏÒÖµ¡£Èç¹û²ÎÊýnumber´óÓÚ1»òСÓÚ1£¬
ÔòÆä·´ÓàÏÒÖµÎÞÒâÒå ¡£
Acosh --
·´Ë«ÇúÓàÏÒ
Asin
º¯ÊýÃèÊö£»double asin(double number); ......

apache phpÔ´Âë°²×°

 Ò»¡¢apache Ô´Âë°²×°
./configure --prefix=/usr/local/apache --enable-so
make
make install
×¢£º°²×°ºóÈç¹û¸Ä±äapacheÆðʼĿ¼(¹¤×÷Ŀ¼)£¬¿ÉÄÜ»á³öÏÖ403´íÎ󣬴ËʱÐÞ¸Ähttpd.confÖеÄUserºÍGroupΪÄã¸Ä±äºó
     µÄÆðʼĿ¼ËùÊôµÄÓû§ºÍ×é¼´¿É£¡
     ÈçrootÓû§° ......

php´¦ÀíÉÏ´«Îļþ

¹«Ë¾MMʱ³£¸øÎÒһЩºÅÂë,È»ÎÒ²éѯÊÇÄļҵÄ,¶¼ÊÇtxtÎı¾¸ñʽµÄ,»¹ºÃºÅÂëÊÇÒ»ÐÐÒ»¸ö,ÓÚÊÇÓÃfile()º¯ÊýÈ¡¸öÊý×é,¿ªÊ¼µÄʱºòÎÒµÄwin7 32λµÄ¿ÉÒÔÓÃapacheºóÀ´×°64λwin7ÓÉÓÚûÕÒµ½Ô­ÉúµÄ64λapacheÓÚÊǾʹ«µ½·þÎñÆ÷ÉÏÿ´Î,ÓÐÉÏ´«ÓиÃÎļþºÜÂé·³,ÓÚÊÇ×ö³ÉÒ»¸öÒ³ÃæÈ¥ÈÃMM×Ô¼ºÍê³É.·Ï»°²»¶à˵ ÒªÔÚform±íµ¥ÀïÉÏ´«Îļþ¾ÍµÃÐèÒªÔÚ±í ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ