PHPµÄ±àÂë¹æ·¶
PHP File Îļþ¸ñʽ
³£¹æ
¶ÔÓÚÖ»°üº¬ÓÐ PHP ´úÂëµÄÎļþ£¬½áÊø±êÖ¾£¨"?>"£©ÊDz»ÔÊÐí´æÔڵģ¬PHP×ÔÉí²»ÐèÒª£¨"?>"£©, ÕâÑù×ö, ¿ÉÒÔ·ÀÖ¹ËüµÄĩβµÄ±»ÒâÍâµØ×¢ÈëÏàÓ¦¡£
ÖØÒª£º ÓÉ __HALT_COMPILER() ÔÊÐíµÄÈÎÒâµÄ¶þ½øÖÆ´úÂëµÄÄÚÈݱ» Zend Framework ÖÐµÄ PHP Îļþ»òÓÉËüÃDzúÉúµÄÎļþ½ûÖ¹¡£ Õâ¸ö¹¦ÄܵÄʹÓÃÖ»¶ÔһЩ°²×°½Å±¾¿ª·Å¡£
Ëõ½ø
Ëõ½øÓÉËĸö¿Õ¸ñ×é³É£¬½ûֹʹÓÃÖƱí·û TAB ¡£
ÐеÄ×î´ó³¤¶È
Ò»ÐÐ 80 ×Ö·ûÒÔÄÚÊDZȽϺÏÊÊ£¬¾ÍÊÇ˵£¬ZF µÄ¿ª·¢ÕßÓ¦µ±Å¬Á¦ÔÚ¿ÉÄܵÄÇé¿öϱ£³ÖÿÐдúÂëÉÙÓÚ 80 ¸ö×Ö·û£¬ÔÚÓÐЩÇé¿öÏ£¬³¤µãÒ²¿ÉÒÔ, µ«×î¶àΪ 120 ¸ö×Ö·û¡£
ÐнáÊø±êÖ¾
ÐнáÊø±êÖ¾×ñÑ Unix Îı¾ÎļþµÄÔ¼¶¨£¬ÐбØÐèÒÔµ¥¸ö»»Ðзû£¨LF£©½áÊø¡£»»ÐзûÔÚÎļþÖбíʾΪ 10£¬»ò16½øÖÆµÄ 0x0A¡£
×¢£º²»ÒªÊ¹Óà ƻ¹û²Ù×÷ϵͳµÄ»Ø³µ£¨0x0D£©»ò Windows µçÄԵĻسµ»»ÐÐ×éºÏÈ磨0x0D,0x0A£©¡£
PHP ´úÂë×ÜÊÇÓÃÍêÕûµÄ±ê×¼µÄ PHP ±êÇ©¶¨½ç£º
<?pÃüÃûÔ¼¶¨ Àà Zend Framework µÄÀàÃüÃû×ÜÊǶÔÓ¦ÓÚÆäËùÊôÎļþµÄĿ¼½á¹¹µÄ£¬ZF ±ê×¼¿âµÄ¸ùĿ¼ÊÇ “Zend/”£¬ZF Ìرð£¨extras£©¿âµÄ¸ùĿ¼ÊÇ "ZendX/"£¬ËùÓÐ Zend Framework µÄÀàÔÚÆäÏ°´µÈ¼¶´æ·Å¡£ ÀàÃûÖ»ÔÊÐíÓÐ×ÖĸÊý×Ö×Ö·û£¬Ôڴ󲿷ÖÇé¿öϲ»¹ÄÀøʹÓÃÊý×Ö¡£Ï»®ÏßÖ»ÔÊÐí×ö·¾¶·Ö¸ô·û£»ÀýÈç Zend/Db/Table.php ÎļþÀï¶ÔÓ¦µÄÀàÃû³ÆÊÇ Zend_Db_Table¡£ Èç¹ûÀàÃû°üº¬¶à¸öµ¥´Ê£¬Ã¿¸öµ¥´ÊµÄµÚÒ»¸ö×Öĸ±ØÐë´óд£¬Á¬ÐøµÄ´óдÊDz»ÔÊÐíµÄ£¬ÀýÈç “Zend_PDF” ÊDz»ÔÊÐíµÄ£¬¶ø "Zend_Pdf" ÊǿɽÓÊܵġ£ ÕâЩԼ¶¨Îª Zend Framework ¶¨ÒåÁËÒ»¸öαÃüÃû¿Õ¼ä»úÖÆ¡£Èç¹û¶Ô¿ª·¢ÕßÔÚËûÃǵijÌÐòÖÐÇÐʵ¿ÉÐУ¬Zend Framework ½«²ÉÓà PHP ÃüÃû¿Õ¼äÌØÐÔ£¨Èç¹ûÓеĻ°£©¡£ ²Î¼ûÔÚ±ê×¼ºÍÌرð¿âÖÐÀàÃû×÷ΪÀàÃûÔ¼¶¨µÄÀý×Ó¡£ ÖØÒª£º ÒÀ¿¿ ZF ¿âÕ¹¿ªµÄ´úÂ룬µ«ÓÖ²»ÊDZê×¼»òÌرð¿âµÄÒ»²¿·Ö£¨ÀýÈç³ÌÐò´úÂë»ò²»ÊÇ Zend ·¢ÐеĿ⣩£¬²»ÒªÒÔ "Zend_" »ò "ZendX_" ¿ªÍ·¡£ ÎļþÃû ¶ÔÓÚÆäËüÎļþ£¬Ö»ÓÐ×ÖĸÊý×Ö×Ö·û¡¢Ï»®ÏߺͶ̺áÏߣ¨"-"£©¿ÉÓ㬿ոñÊǾø¶Ô²»ÔÊÐíµÄ¡£ °üº¬ÈκΠPHP ´úÂëµÄÈκÎÎļþÓ¦µ±ÒÔ ".php" À©Õ¹Ãû½á⣬ÖÚËùÖÜÖªµÄÊÓͼ½Å±¾³ýÍâ¡£ÏÂÃæÕâЩÀý×Ó¸ø³ö Zend Framework Àà¿É½ÓÊܵÄÎļþÃû£º Zend/Db.php
Zend/Controller/Front.php
Zend/View/Helper/FormRadio.php
ÎļþÃû±ØÐë×ñÑÉÏÊöµÄ¶ÔÓ¦ÀàÃûµÄ¹æÔò¡£
º¯ÊýºÍ·½·¨
º¯ÊýÃûÖ»°üº¬×ÖĸÊý×Ö×Ö·û£¬Ï»®ÏßÊDz»ÔÊÐíµÄ¡£Êý×ÖÊÇÔÊÐíµÄµ«´ó
Ïà¹ØÎĵµ£º
1.ʲôÊÇMVC£¿
MVC±¾À´ÊÇ´æÔÚÓÚDesktop£¨×ÀÃ棩³ÌÐòÖеģ¬MÊÇÖ¸Êý¾ÝÄ£ÐÍ£¬VÊÇÖ¸Óû§½çÃ棬CÔòÊÇ¿ØÖÆÆ÷¡£Ê¹ÓÃMVCµÄÄ¿µÄÊǽ«MºÍVµÄʵÏÖ´úÂë·ÖÀë¡£MVCÊÇÒ»¸öÉè¼Æģʽ£¬ËüÇ¿ÖÆÐÔµÄʹӦÓóÌÐòµÄÊäÈ룬´¦ÀíºÍÊä³ö·Ö¿ª¡£Ê¹ÓÃMVCÓ¦ÓóÌÐò±»·ÖΪÈý¸öºËÐIJ¿¼þ£ºÄ£ÐÍ£¬ÊÔͼ£¬¿ØÖÆÆ÷¡£ËüÃǽ«´¦Àí×Ô¼ºµÄÈÎÎñ¡£
2.ΪʲôҪʹÓÃMVC?
Ê×Ï ......
echo "<script language='javascript'>
alert('ͼÊéÐÅÏ¢Ìí¼Ó³É¹¦!');history.back();</script>";
¡¾ ×ÖÌ壺<A href="javascript:ContentSize(16)">´ó</A>
......
1 Apache
ÐÞ¸Ä documentroot ¸ùĿ¼
directory ·ÃÎʸùĿ¼ȨÏÞ
directoryindex ĬÈÏÊ×Ò³ ......
Ñ¿ÓêÔ´´PHPÐÂÎÅϵͳ½Ì³Ì£¨µÚÒ»°æ£©µÚÒ»½²£ºÓà phpmyadmin ½¨Á¢Êý¾Ý¿â
Ê×ÏȽ¨Á¢Ò»¸öÊý¾Ý¿â£¬ÃûΪ yayu ¡£ÔÚÕâ¸öÊý¾Ý¿âϽ¨Á¢Ò»¸öÊý¾Ý±í£¬ÃûΪ news ¡£ÏÂÃæ½øÈëÒ»¸öÖص㣬ÄǾÍÊÇÔÚ±í news Ͻ¨Á¢¸÷¸ö×ֶΡ£
ÄÇô£¬Ê²Ã´½Ð×Ö¶ÎÄØ£¿Í¨Ë׵㣬¾ÍÊÇÒ»ÀàÊÂÎïµÄ×ܳơ£±ÈÈç˵£¬ËùÓеÄÐÂÎÅ·¢±íʱ¼äÓÃÒ»¸öÃû´ÊÀ´´ú±í£¨´ÓżµÄ¾ÑéÀ´¿´ ......
ÓÃPHPʵÏÖÊÖ»ú¹éÊôµØ²éѯapi½Ó¿Ú£º
Ö÷ҪʹÓÃcurlʵÏÖ£¬ÐèÒª¿ªÆôphp¶ÔcurlµÄÖ§³Ö.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Conten ......