Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 »ñµÃ ¾«È· ʱ¼ä ÓÐÒâ˼¡«£¡£¡¡«¡«£¡

/**
*
* @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'); ......

Nginx/PHP/path_infoÎÊÌâ,È¥µôindex.php

×÷ÓÃÊǰÑÐÎÈ磺www.abc.com/index.php/blog/show µÄµØÖ·ÃÀ»¯³É  www.abc.com/blog/show  ,ʹÓÃ$_SERVER['PATH_INFO']½ÓÊÕ±äÁ¿¡£
server
{
listen 80;
server_name myweb;
index index.html index.htm index.php;
root /home/zhaowei/code;
if (!-f $request_filename) { ......

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

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

php5.3¼æÈÝ֮ǰphp´úÂëµÄһЩ¸Ä¶¯

×î½üµÄphp°æ±¾ºÃÏñÒѾ­µ½ÁË5.3°É£¬Óв»ÉÙ¶«Î÷¶¼³öÏÖÁ˱仯£¬´Ó5.3¿ªÊ¼£¬ÎªÁ˸üºÃµÄÏòδÀ´°æ±¾µÄphp£¨°æ±¾6£©¹ý¶É£¬½«Î´À´²»ÔÙÖ§³ÖµÄº¯Êý±ê¼Ç³ÉÁËdeprecated¡£ÔÚ´úÂëÖÐʹÓÃÕâЩº¯Êý£¬½«ÔÚÒ³ÃæÖÐÏÔʾ¾¯¸æÐÅÏ¢¡£
±ä¸ü£º
ÅäÖÃÎļþÇ¨ÒÆ
PHP 5.3 ¿ªÊ¼£¬ÅäÖÃÎļþ php.ini ÖеÄһЩÅäÖý«»áÔÚ PHP Ö´ÐÐʱÏÔʾ¹ýʱ¾¯¸æ£¬ÕâЩÅäÖý ......

php¿ª·¢50¸ö·Ç³£ÓÐÓõŤ¾ß¡¾×ª¡¿

ÕâÀï50¸öÓÐÒæµÄPHP¹¤¾ß£¬¿ÉÒÔ´ó´óÌá¸ßÄãµÄ±à³Ì¹¤×÷£º
µ÷ÊÔ¹¤¾ß
Webgrind
Xdebug
Gubed PHP Debugger
DBG
PHP_Debug
PHP_Dyn
MacGDBp
²âÊÔºÍÓÅ»¯¹¤¾ß
PHPUnit
SimpleTest
Selenium
PHP_CodeSniffer
dBug
PHP Profile Class
Îĵµ¹¤¾ß
phpDocumentor
PHP DOX
°²È«¹¤¾ß
Securimage
£ºÑéÖ¤Â빤¾ß¡£
Scave ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ