thinkphpÑéÖ¤ÂëÍÉ»¯Ôõô°ì
Ëæ×Å»¥ÁªÍøµÄÆÕ¼°£¬ÑéÖ¤Âë×÷ΪһÖÖÖ÷ÒªµÄÉí·ÝÑéÖ¤ÊÖ¶ÎÒ²»ñµÃÁËÆÕ±éÓ¦Óá£ÆäÖУ¬thinkphp×÷ΪһÖÖ³£ÓõÄphp¿ò¼Ü£¬Ò²ÌṩÁËÑéÖ¤ÂëµÄ¹¦Ð§¡£¿ÉÊÇ£¬ÓÐʱ¼äÎÒÃÇÔÚʹÓÃthinkphpµÄÑéÖ¤Âëʱ£¬»áÓöµ½Ò»Ð©ÎÊÌ⣬ºÃ±ÈÑéÖ¤ÂëÏÔʾ²»³öÀ´»òÕß·ºÆð¹ýʧ¡£ÏÂÃ棬ÎÒÃÇÀ´Ì½ÌÖÒ»ÏÂÔÚthinkphpÖУ¬ÑéÖ¤ÂëÍÉ»¯¸ÃÔõô°ì¡£
1.ÑéÖ¤ÂëÎÞ·¨ÏÔʾ
µ±ÎÒÃÇÔÚʹÓÃthinkphpÌìÉúÑéÖ¤Âëʱ£¬ÓÐʱ¼ä»á·¢Ã÷ÑéÖ¤ÂëͼƬÎÞ·¨ÏÔʾ¡£ÕâÖÖÇéÐÎÒ»Ñùƽ³£ÓÐÒÔϼ¸ÖÖÔµ¹ÊÔÓÉ£º
1£©ÑéÖ¤Âë·¾¶¹ýʧ
ÔÚthinkphpÖУ¬ÎÒÃÇ¿ÉÒÔÉèÖÃÑéÖ¤ÂëµÄ·¾¶£¬ÈôÊÇ·¾¶ÉèÖùýʧ£¬¾Í»áµ¼ÖÂÎÞ·¨ÏÔʾÑéÖ¤Â롣ĬÈÏÇéÐÎÏ£¬ÑéÖ¤ÂëµÄ·¾¶ÊÇ¡°ThinkPHP/Library/Think/Verify/¡±£¬ÎÒÃÇÐèҪȷ±£ÑéÖ¤ÂëÎļþ´æ·ÅÔڸ÷¾¶Ï¡£ÈôÊÇÑéÖ¤ÂëÎļþ²»±£´æ»ò´æ·ÅµÄ·¾¶²»×¼È·£¬¾Í»áµ¼ÖÂÑéÖ¤ÂëÎÞ·¨ÏÔʾ¡£
Á¬Ã¦Ñ§Ï°¡°PHPÃâ·ÑѧϰÌõ¼Ç£¨ÉîÈ룩¡±£»
2£©GD¿âûÓÐ×°ÖûòÆôÓÃ
thinkphpÑéÖ¤ÂëÊÇͨ¹ýGD¿âÀ´ÌìÉúµÄ£¬ÈôÊÇGD¿âûÓÐ×°ÖûòÆôÓ㬾ͻᵼÖÂÑéÖ¤ÂëÎÞ·¨Õý³£ÏÔʾ¡£ÈôÊÇÄúʹÓõÄÊÇphp5.x°æ±¾£¬¿ÉÒÔʹÓÃphpinfo()º¯ÊýÉó²éGD¿âÊÇ·ñ×°Öã¬Í¬Ê±ÐèҪȷ±£php.iniÎļþÖÐÒѾ½«GD¿âÉèÖÃΪÆôÓÃ״̬¡£ÁíÍ⣬ÈôÊÇÄúʹÓõÄÊÇphp7.x°æ±¾£¬Ò»Ñùƽ³£ÇéÐÎÏÂGD¿âÊÇĬÈÏ×°Öõģ¬Ö»ÐèҪȷ±£php.iniÎļþÖÐÒѾ½«GD¿âÉèÖÃΪÆôÓÃ״̬¡£
2.ÑéÖ¤ÂëÏÔʾ¹ýʧ
ÓÐʱ¼ä£¬ÎÒÃÇÔÚʹÓÃthinkphpµÄÑéÖ¤Âëʱ£¬ÑéÖ¤Âë»áÏÔʾ¹ýʧ¡£ÕâÖÖÇéÐÎÖ÷ÒªÓÐÒÔϼ¸ÖÖÔµ¹ÊÔÓÉ£º
1£©ÑéÖ¤Âë×ÖÌåÉèÖùýʧ
ÔÚthinkphpÖУ¬ÎÒÃÇ¿ÉÒÔÉèÖÃÑéÖ¤Âë×ÖÌå¼°×ÖÌå¾Þϸ£¬ÈôÊÇ×ÖÌåÉèÖùýʧ»ò×ÖÌåÎļþË𻵣¬¾Í»áµ¼ÖÂÑéÖ¤ÂëÏÔʾ¹ýʧ¡£Ä¬ÈÏÇéÐÎÏ£¬ÑéÖ¤Âë×ÖÌåÎļþ´æ·ÅÔÚ¡°ThinkPHP/Library/Think/Verify/font/¡±Â·¾¶Ï£¬ÎÒÃÇÐèҪȷ±£×ÖÌåÎļþ±£´æÇÒÉèÖÃ׼ȷ¡£
2£©ÑéÖ¤ÂëÌìÉú´úÂë¹ýʧ
ÔÚthinkphpÖУ¬ÌìÉúÑéÖ¤ÂëµÄ´úÂëÒ»Ñùƽ³£ÊÇͨ¹ýŲÓÃverifyÀàÀ´ÊµÏֵġ£ÈôÊÇÎÒÃÇÔÚʹÓÃverifyÀàʱ£¬´úÂë·ºÆð¹ýʧ»òÉèÖò»×¼È·£¬¾Í»áµ¼ÖÂÑéÖ¤ÂëÏÔʾ¹ýʧ¡£ÀýÈ磬ÎÒÃÇÔÚÌìÉúÑéÖ¤Âëʱ£¬ÉèÖÃÁËÑéÖ¤Âë¾ÞϸΪ0£¬»òÕßÑéÖ¤Â볤¶ÈÉèÖùý³¤£¬¾Í»áµ¼ÖÂÌìÉúµÄÑéÖ¤ÂëÎÞ·¨Õý³£ÏÔʾ¡£
3£©ÑéÖ¤Âë»á»°Ê§Ð§
¹ØÓÚһЩ¸ß¼¶Ó¦ÓóÌÐò£¬ÎªÁËÌá¸ßÇå¾²ÐÔ£¬ÓÐʱ¼äÎÒÃǻὫÑéÖ¤ÂëÉúÑĵ½»á»°ÖУ¬ÒÔ±ÜÃâÑéÖ¤Âë±»Æƽâ»òÖظ´Ê¹Ó᣿ÉÊÇ£¬ÈôÊǻỰ³¬Ê±»ò±»Çå¿Õ£¬¾Í»áµ¼ÖÂÑéÖ¤ÂëʧЧ¡£Òò´Ë£¬ÎÒÃÇÐèҪȷ±£ÑéÖ¤Âë»á»°µÄÓÐÓÃÆÚ¡¢Öü´æλÖõÈÉèÖÃ׼ȷ£¬ÒÔ°ü¹ÜÑéÖ¤ÂëµÄÕý³£Ê¹Óá£
×ܽ᣺
ÒÔÉÏÊÇÔÚʹÓÃthinkphpʱ£¬ÑéÖ¤Âë·ºÆð¹ýʧµÄһЩ³£¼ûÔµ¹ÊÔÓɼ°½â¾öÒªÁì¡£ÖµµÃ×¢ÖصÄÊÇ£¬ÔÚʹÓÃthinkphpµÄÑéÖ¤Âëʱ£¬ÎÒÃÇÐèҪȷ±£ÉèÖÃ׼ȷ¡¢Â·¾¶×¼È·¡¢×ÖÌåÎļþ±£´æÒÔ¼°»á»°ÓÐÓõȣ¬²Å»ªÈ·±£ÑéÖ¤ÂëµÄÕý³£Ê¹Óá£ÈôÊÇÎÒÃÇÔÚʹÓÃÀú³ÌÖÐÓöµ½ÎÊÌ⣬¿ÉÒÔͨ¹ýÉó²éÎĵµ»ò×ÉѯÏà¹Ø¿ª·¢Ö°Ô±À´½â¾öÎÊÌâ¡£
ÒÔÉϾÍÊÇthinkphpÑéÖ¤ÂëÍÉ»¯Ôõô°ìµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡