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

ÔÚPHPÀï¼ÓÔØmcryptÄ£¿é Smilings

1.ÏÂÔØ°²×°mcrypt
ÏÈÈ¥http://www.sourceforge.netÏÂÔØLibmcrypt,mhash,mcrypt°²×°°ü
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µ¼Èë¼ü½Ó¿â
5.°²×°PHPÀ©Õ¹Ä£¿é:¶¯Ì¬¼ÓÔØ
ʹÓÃphpµÄ³£¼ûÎÊÌâÊÇ£º±àÒëphpʱÍü¼ÇÌí¼ÓijÀ©Õ¹£¬ºóÀ´ÏëÌí¼ÓÀ©Õ¹£¬µ«ÊÇÒòΪ°²×°phpºóÓÖ×°ÁËһЩ¶«Î÷ÈçPEARµÈ£¬²»Ïëɾ³ýĿ¼ÖØ×°£¬ÓÚÊÇ¿ÉÒÔ²ÉÓÃphpize¡£
·½·¨ÊÇ£º
1).ÒªÓÐÓëÏÖÓÐphpÍêÈ«ÏàͬµÄphpѹËõ°ü ,Õ¹¿ªºó½øÈëÀïÃæµÄext/mcryptĿ¼ (ÀïÃæÊÇmcryptµÄphpÀ©Õ¹)
#cd /usr/local/software/php-5.3.2/ext/mcrypt
2).Ö´ÐÐ/usr/local/php/bin/phpize
#/usr/local/php/bin/phpize
3).±àÒë°²×°
Ö´ÐÐÍêºó£¬»á·¢ÏÖµ±Ç°Ä¿Â¼Ï¶àÁËһЩconfigureÎļþ£¬Èç¹ûû±¨´í£¬Ôò¸ù¾ÝÌáʾÔËÐÐ
./configure --with-php-config=/usr/local/php/bin/php-config
×¢ÒâÒªÏÈÈ·±£/usr/local/php/bin/php-config´æÔÚ¡£
make
make install
4). ¿½±´mcrypt.soÎļþ
make install Ö®ºóϵͳ»áÌáʾÄãmcrypt.soÎļþËùÔÚµÄĿ¼
#cp  /usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/mcrypt.so /usr/local/software/php-5.3.2/ext
5).ÅäÖÃphp.ini
#vi /usr/local/php/lib/php.ini
ÐÞ¸Äphp.ini
ÅäÖÃextension_dir = "/usr/local/software/php-5.3.2/ext"
ÔÚ×îºóÌí¼ÓÒ»¾äextension=mcrypt.so
6.×îºóÖØÆôAPACHE·þÎñ


Ïà¹ØÎĵµ£º

¼òµ¥µÄ¸ÅÊö¶ÔphpµÄÈÏʶ

×÷Ϊһ¸öphp³ÌÐòÔ±À´Ëµ¡£¡£ÓÐʲôÊÇÎÒÃÇÓ¦¸ÃÖªµÀµÄÄØ£¿
Ê×ÏÈÀ´ËµÒ»Ï¡£phpÖ®ËùÒÔÄܹ»ÔÚ¹úÄÚ×ߺ졣¡£Æä×îÖØÒªµÄÒ»µã¾ÍÊÇËûÊÇ¿ªÔ´µÄ¡£ºÃ¶àÓÅÐãµÄ¶«Î÷¶¼¿ÉÒÔÃâ·ÑµÄÄÃÀ´Óá£ÏÖÔÚÊÐÃæÉÏÓÐÄÇô¶¼µÄphp¿ªÔ´²úÆ·¡£µ±ÎÒÃÇÐèÒª×öÒ»¸öÏà¹ØµÄÍøÕ¾µÄʱºò¡£Ö»Òª°ÑÈ˼ҵIJúÆ·ÄùýÀ´¡£¸ù¾Ý×Ô¼ºµÄÐèÒª×ö¶þ´Î¿ª·¢¾Í¿ÉÒÔÁË¡£¡£´Ó¶øʹphpÏîÄ¿µÄ ......

php »ñµÃ ¾«È· ʱ¼ä ÓÐÒâ˼¡«£¡£¡¡«¡«£¡

/**
*
* @param <type> $format
* @param <type> $utimestamp
* @return <type>
* @example
*
* echo udate('H:i:s.u'); 19:31:28.7812
*
* echo udate('H:i:s.uuuu'); 19:31:28.78127781277812778127
*
* echo udate('Y-M-D H:i:s.u'); ......

php¶ÁÈ¡jarÐÅÏ¢×Ô¶¯Éú³ÉjadÎļþ


ÉÏ´«jarÊÖ»úÓÎÏ·¿Í»§¶Ëʱ£¬ÒòΪÓÐЩÊÖ»úÈçÈýÐǵÄijЩ»úÐÍÖ»ÄÜ°²×°jadÎļþ£¬ËùÒÔÔÚºǫ́ÉÏ´«ÐèŪһ¸ö¸ù¾ÝJARÎļþ×Ô¶¯Éú³ÉJADµÄ¹¦ÄÜ¡£Ò»°ãÔÚJARµÄÎļþ°üÄÚ£¬»áÓÐÒ»¸öÓÎÏ·ÐÅÏ¢Îļþ£¬Ò»°ã»áÔÚMETA-INF/MANIFEST.MFÀÎÒÃÇÖ»ÐèÒª¶ÁÈ¡µ½Õâ¸öÎļþµÄÄÚÈÝ£¬È»ºóÔö¼ÓһЩÆäËüÐÅÏ¢£¬Éú³ÉJADÎļþÀï¾ÍÐÐÁË¡£ÕâÀïÐèÒªÓõ½PHPµÄzipÀ©Õ¹À´ ......

PHPѧϰ±Ê¼Ç£¨Ê®Ììѧ»áPHP£©

Ò». 1. ǶÈë·½·¨£º »òÕß 2. Ó¦ÓÃÎļþ£º £¨1£©require("MyRequireFile.php")£º·ÅÔÚphp³ÌÐòµÄ×îÇ°Ã棬ÔÚphp³ÌÐòÖ´ÐÐÇ°ÒýÈë £¨2£©include("MyIncludeFile.php")£º·ÅÔÚÁ÷³Ì¿ØÖƵĴ¦Àí²¿·Ö£¬ÔÚÔËÐе½includeʱÔÙ¶ÁÈ¡½øÀ´ 3. ×¢ÊÍ·½·¨£º »ìºÏCºÍ»ã±à£º// £¬/* */£¬ #   4. ±äÁ¿ÀàÐÍ£º £¨1£©PHP±äÁ¿Ò ......

php²é¿´·þÎñ¶ËĿ¼

¼¸ÌìûÓиüеÄblogÕâÁ½ÌìÔÚд¸öС¶«Î÷ÍæÍæ
ÏÖÔÚÊÇ»ù±¾ÄÜÓÃÁË
×î½üûʲôÊÂ×ö£¬¾ÍÏëµ½Á˲鿴·þÎñ¶ËĿ¼µÄС³ÌÐòÍæÍæ
ÏÖÔڲ鿴ÒѾ­Ð´ÍêÁË·¢ÉÏÀ´¸ø´ó¼Ò¿´¿´
demoµØÖ·
http://www.web-jia.com/demo/folder/demo.html
ÎÒ·ÖÏíµÄ´úÂ뻶ӭ´ó¼ÒÀ´ÏÂÔØ°¡
ÏÂÔØ¿ÉÒÔµ½
http://www.web-jia.com/viewthread.php?tid=2832&ext ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ