ÈçºÎµ÷ÊÔPhp?
×î¼òµ¥µÄ˶¼»áµÄµ÷ÊÔ(ÊÇô?):
±¾À´°²×°phpÊÇûÎÊÌâ Ò²ÄÜÓÃÁË µ«ÊÇÓÖ´ÓÊéÉϳÁËһЩ´úÂëÀ´·¢ÏÖ²»ÄÜÓÃ, ÄǾÍÓÃÑÛ¾¦×ÐϸµÄ¶Ô×ÅÊé±¾¾ÀÕýһϴúÂë¹þ ¿Ï¶¨ÊÇÄã³´íÁË ÒªÃ´ÊÇÓ¡Ë¢´íÁË
±ÈÈç 1(yi)¸úl(el) 0(ling)¸úO(´óдo)µÈ
±ðЦ¹þ ÕæµÄÓÐÈ˳´í¹ý »¹ÈÃÎÒ¹ýÈ¥°ïæµ÷ÊÔ ¹ýÈ¥ÎÒ¼Èë½øÈ¥(ËûµÄû±£´æ) ¾ÍÈ«¶ÔÁË
ÑÔ¹éÕý´«
Q: "ΪʲôҪµ÷ÊÔ?"
A: µ±È»ÊÇÒòΪ³ÌÐò´íÀ². ÄãÒÔΪÎÒÓÐʲô±ðµÄ´ð°¸?
Q: "¿ÉÊÇÎÒ¾õµÃÎҵijÌÐòÓ¦¸Ãû´í°¡!"
A: ²»ÄܳöÀ´ÆÚÍûµÄ½á¹û µ±È»ÊÇ´íÎó·¢Éú. ÓÐÕâÖÖ˼ÏëµÄÈËÊǸù±¾²»¾ß±¸µ÷ÊÔ¹ÛÄî ¸üûÓе÷ÊÔÄÜÁ¦.
Q: Äǵ÷ÊÔÓÐʲôÓÃ?
A: ²»¹ÜÊÇÄãÅäÖõÄphp³ö´í »¹ÊÇÄãµÄ³ÌÐòд´í »¹ÊÇÄãдµÄÕýÈ·µÄ³ÌÐò¸ú±ðÈËÅäÖõÄphp(±ÈÈçÃâ·Ñ¿Õ¼ä)·¸³å, ѧ»áµ÷ÊÔ¶¼ÄÜÕÒ³öÔÒòÀ´
Q: Âß¼ÂÒÁËÄܵ÷ÊÔºÃô?
A: »òÐíÄãż¶û¸ÄÀ´¸ÄÈ¥¸ÄºÃÁË ÒÔΪÊǵ÷ÊÔºÃÁË ÆäʵÄÇÒѾ²»Êǵ¥´¿µÄµ÷ÊÔ, ¶øÊÇ·´¸´µÄÓóÌÐò´úÂë½øÐÐ˼¿¼, ²¢ÇÒ·´¸´µÄ¸Ä´úÂëÀ´"ʵ¼ù"ij¸öideaÊÇ·ñ¿ÉÐÐ.
¿ÉÒÔ˵ÊÇ"µ÷ÊÔÂß¼"¶ø·Ç"µ÷ÊÔ´úÂë":
Â߼û´úÂë»òÕßÂÒ´úÂë--µ÷ÊÔ/ÐÞ¸ÄÂß¼-->ÕýÈ·µÄÂß¼->ÌåÏÖÔÚ´úÂëÉÏ,³öÀ´ÕýÈ·µÄ´úÂë.
µ¥´¿µÄµ÷ÊÔ´úÂëÊÇ:
ÕýÈ·µÄÂß¼--±àÂë-->³ö´íµÄ´úÂë--µ÷ÊÔ-->ÕýÈ·µÄ´úÂë
ËùÒÔµ÷ÊÔ¿ÉÒÔ·ÖΪ:
1.µ÷ÊÔÂß¼, 2.µ÷ÊÔ´úÂë, 3.µ÷ÊÔ½çÃæ. 4. etc..
´íÎóµÄÂß¼ÊDz»¿ÉÄܳöÀ´ÕýÈ·µÄ³ÌÐò. д³ÌÐòÊ×ÏȵðÑÂß¼(Á÷³Ì)ŪÇå³þ, È»ºó²Å¿ªÊ¼±àÂë.
ºÏ²¢ÔÚÒ»Æð¾ÍÊÇ:
º¬ºýµÄÂß¼--µ÷ÊÔÂß¼-->ÕýÈ·µÄÂß¼--±àÂë-->³ö´íµÄ´úÂë--µ÷ÊÔ´úÂë-->ÕýÈ·µÄ´ú°¢Âí
ÆäÖе÷ÊÔÂß¼Äã¿ÉÒÔÀûÓÃ"Ð޸ĴúÂë"À´¸¨Öú ÃâµÃÄÔ×ÓÌ«ÀÛ, µ«ÊÇÄÔ×Ó±ØÐ붯, ²»Äܲ»Ë¼¿¼ÂÒ¸ÄÀ´¸ÄÈ¥, ¶øÇÒ²»Äܸú "µ÷ÊÔ´úÂë" »ìÔÚÒ»Æð.
¸ÄС´íÎó ³£³£»ìÔÚÒ»Æð ¾Í½â¾öÁË, µ«ÊÇÒªÑø³É·Ö¿ªµÄÏ°¹ß, ¶ÔÓÚ´ó´íÎó²ÅÄÜÒ»ÑùÇáËɽâ¾ö.
±ð»Å
ºÜ³õѧÕß Ò»Åöµ½´íÎó¾Í»ÅÁË, ÄÔ×ÓÀïÖ»ÖªµÀ"²»Ðа¡ ´íÁË ²ÒÁË ÕÒ¸öÈËÎÊÎÊ", ÒªÀä¾²ÏÂÀ´ ¸ù¾ÝËùѧµÄ֪ʶȥÑо¿, µ½µ×ʲôÊÇdebug, ÈçºÎdebug, ³ö´íÁ˵½µ×¸Ã¸Éʲô
»ù±¾µ÷ÊÔ:
1. ´ò¿ªµ÷ÊÔ¹¦ÄÜ: php.ini Àï ÉèÖÃerror_reporting = E_ALLÒÔ¼° display_errors = On ÖØÆô web·þÎñ(apache)
2. ˢдíÎóµÄÒ³Ãæ ²é¿´´íÎóÌáʾ ÐкŠÎļþÃû
3. ´ò¿ª¸ÃÎļþ ¶¨Î»µ½³ö´íÐÐ. ±ÈÈç´úÂë echo $abc[2];
4. Àí½â´íÎó:
a. ²é¿´ÊÖ²á Àí½â´íÎóº¬Òå ÒªÄÜÀí½âÊ×ÏÈÒªÀí½âÓïÑÔ ±ÈÈç×î¼òµ¥µÄ Undefined index 2 Òâ˼ÊÇÊý×é²»´æÔÚ¸Ãϱê Ò²¾Í˵Ã÷Äã·ÃÎÊÁËij¸öÊý×é²»´æÔÚµÄÔªËØ
b. Èç¹ûÒѾ֪µÀÈçºÎ¸Ä ¾ÍÖ±½ÓÐ
Ïà¹ØÎĵµ£º
ÔÚPHP.netµÄÅ£È˻ظ´ÖÐÕÒµ½Ò»¸ö×Ô¶¯¸ù¾ÝͼƬÎļþÀàÐÍ´ò¿ªÍ¼Æ¬µÄPHPº¯Êý,ºÜ·½±ã.
/**
*
* Loads a file based on its filetype and returns false if it fails.
*/
function imagecreatefromfile($path, $user_functions = false)
{
$info = @getimagesize($path);
if(!$info)
{ ......
´Ó¼Ü¹¹Éè¼Æ·½Ã濼ÂÇ£¬ºÜ¶àϵͳ²ÉÓÃÁË Java Bridge°ÑphpºÍJAVA¼¼Êõ½áºÏÆðÀ´£¬ÀûÓÃPHPµÄ¿ìËÙÏìÓ¦ºÍJAVAµÄÊý¾Ý³Ö¾Ã»¯ÄÜÁ¦£¬Äܴܺó³Ì¶ÈÉÏÄÜÌá¸ßϵͳÐÔÄÜ¡£ÕâÁ½ÆªÎÄÕ½«ÏêϸµÄ½éÉÜProject Zero¡¢WebSphere sMash ºÍ PHP µÄÕûºÏ¼¼Êõ
Project Zero¡¢WebSphere sMash ºÍ PHP ÈëÃÅ
http://www.ibm.com/developerworks/cn/web/wa- ......
Ò»¡¢°²×°
1. Ê×ÏÈ°²×°SSH
sudo apt-get install ssh
2.°²×°MySQL(ËäÈ»ÏÖÔÚ×îаæΪ5.1£¬µ«ÊÇ»¹Ö»ÄÜ×°5.0°æ±¾)
sudo apt-get install mysql-server-5.0
3.°²×°Apache
sudo apt-get install apache2
4.°²×°PHP
sudo apt-get install php5 libapache2-mod-php5
5.ÖØÆôApache
sudo /etc/init.d/apache2 restart ......
Zend-PHP±àÂë¹æ·¶
1.¶ÔÓÚÖ»°üº¬PHPµÄÎļþ£¬"?>"ÊDz»ÔÊÐí´æÔڵġ£×¢ÊÍ£º·Àֹĩβ±»ÒâÍâµÄ×¢Èë¿Õ°×²¢ÏÔʾÊä³ö¡£
2.Ëõ½øӦʹÓÃËĸö¿Õ¸ñµÄËõ½ø£¬¶ø²»Ê¹ÓÃÖƱí·ûTAB¡£
3.Ò»ÐÐ80¸ö×Ö·ûÊDZȽϺÏÊʵģ¬×î¶àΪ120×Ö·û¡£
4.ÐеĽáÊø·ûÖ»ÄÜÊDZê×¼µÄUNIXÎı¾ÎļþµÄ»»ÐУ¬»»ÐзûÔÚÎļþÖбíʾΪ10£¬»ò16½øÖÆµÄ 0x0A¡£
²»ÒªÊ¹ÓÃwin ......
½ñÌìÔÚ¼ÒÀïÖØа²×°ÁËÒ»ÏÂPHP µ±ÈÃÒ²ÓÐApacheÁË¡£µ«ÊÇÎÒÓöµ½ÁËÒ»¸öÎÊÌ⣬¾ÍÊÇApache·þÎñÎÞ·¨¿ªÆô£¬ºó¹ûÔõÑùÎÒÏëºÜ¶àÈ˶¼ÊÇÖªµÀµÄ£¬µ±Ê±Ò²Ã»ÓжàÏ룬ÒÔΪÊÇ×Ô¼º°²×°µÄʱºò³öÏÖÁËʧÎó¾ÍÖØа²×°Ò»±é£¬¿ÉÊÇ»¹ÊÇÒ»ÑùÎÞ·¨´ò¿ª£¬È»ºóÎÒ¾ÍÔÚÏëÊÇʲôÎÊÌ⣬¶Ë¿ÚºÅ80.ÎҲ鿴ÁËһϣ¬·¢ÏÖûÓдíÎó°¡£¬Ë¼¿¼Á˺ܾ㬶ÔÍøÂçÒÔ¼°·À» ......