1.å½ä»è¾ä¸ºå¸¸è§ç3ç§ webåºç¨ç¨åºå¼åå¹³å°ç±»å
2.PHPè¯è¨çç¹ç¹ï¼
å½ä»è¾ä¸ºå¸¸è§ç3ç§ webåºç¨ç¨åºå¼åå¹³å°ç±»å
Openbiz Cubi PHPå¼åæ¡æ¶
è¿æ¾ç¶æ¯ä¸ä¸ªé«è¦åæ§çæ¡æ¶ç代表ï¼æç¹è®©å¼å人åâæå å ¥ä½âå¿«æ·é åºä¸æ ·ççæè§ãOpenbiz Cubi æ¯ä¸ä¸ªåºç¨å¹³å°å¼çå¼åæ¡æ¶ãè½ç¶ä¸ä¼å¤æ´å è³çè½è¯¦çæ¡æ¶ç¸æ¯ Openbiz Cubi ä»ç¶æ¯ä¸å¹é»é©¬ï¼ä½æ¯è¿æ¯ä¸ä¸ªååå¼å¾æ¨èçæ¡æ¶ãå®èªèº«åºäºZend Frameworkæ建ï¼ä½æ¯æ¥æèªå·±ç¬ç¹çåºäºå æ°æ®ç MVC å ORM é»è¾ï¼å¹¶éç¨SmartyåPHPæ¨¡æ¿ ä½ä¸ºä¸»è¦UIç模æ¿å¼æï¼æ以å¦æä½ æ¯Zendæ¡æ¶çç©å®¶ï¼å«æ å¿ï¼Openbiz Cubiç代ç ä¹ä¼åæ ·è®©ä½ å¾å®¹æä¸æã
å®ä¸åäºå ¶ä»ä¼ ç»æä¹ä¸çPHPæ¡æ¶ï¼å®å ·æä¸ä¸ªç±»ä¼¼JAVAçå æ°æ®å¼æï¼ å¯ä»¥éè¿XMLçæ¹å¼æ¥âæè¿°â大å¤æ°å¯¹è±¡ï¼çè³éè¿XMLçæè¿°å°±å¯ä»¥å®ç°æ°æ®çCRUDï¼å¢å 读æ¹ï¼è¿äºæä½ãå¦æä½ çä¸å¡éæ±ä» ä» æ¯è¦å®ç°ä¸äºç®å çæ°æ®CRUDæä½ï¼ä½ çè³ä¸éè¦å»åä»ä¹PHP代ç ï¼XMLå°±å¯ä»¥å ¨é¨æå®ãèä½ çPHPå夫å¯ä»¥éè¿ä»çPlugin-Serviceæ¹å¼ç¨äºéä¸å¨ å®ç°æäºç¹æ®çä¸å¡é»è¾ä¸ã
Openbiz Cubiç® åè¿æä¸ä¸ªå«å Openbiz Appbuilder çè¶ çº§å¥½ç¨ç代ç çæå·¥å ·ï¼å¯¹äºè¿ä¸çOpenbizçXMLå æ°æ®çå¼å人åæ¥è¯´ï¼Appbuilder ç»å¯¹æ¯ä¸ä¸ªå¯ä»¥å¸®å©ä½ å¿«éä¸æçå©å¨ï¼ä»éè¿å¾å½¢çé¢ççæå导æ¥å¸®ä½ èªå¨å建æ°æ®å¯¹è±¡ã表å对象ãåµå ¥å¼æå¡ï¼çè³æ´ä¸ªåºç¨ç¨åºçéå½¢ã æOpenbizçå®æ¹ä»ç»æ¥è¯´ï¼ä½ åªéè¦æèæ¸ æ¥ä½ çåºç¨ç¨åºçä¸å¡é»è¾ï¼å©ä¸ç代ç å·¥ä½å°±äº¤ç»Openbiz Appbuilderæ¥å¸®ä½ æå®å§ã
CakePHP å¼åæ¡æ¶
å¦æä½ ä»ç¶éè¦ç¼åé¢åPHP4å ¼å®¹ç代ç ï¼CakePHP å°æ¯ä¸ä¸ªé常ä¸éçéæ©ï¼ å¨PHP 4 & 5çMVCå¼æ¡æ¶å表éé¢ï¼CakePHPé½æ¾ç»æ¯ææµè¡çãå®è¿æä¾äºå¾å¤ç§éå¾çææ¯æ¯æï¼è®¨è®ºç»ãçè¨æ¿ãIRCçï¼è¿æä¼ç§çæç¨ã CackePHPæ¯ä¸ªå¾å®¹æä¸æçæ¡æ¶ï¼ä½æ¯ä½ 并ä¸å®¹æå¨ççå å¨çæ¶é´å°±å®å ¨ææ¡å®ã
Zend Frameworkæ¡æ¶
Zend Framework æ¯é¢å¯¹ä¸äºè¾æç»éªçå¼åè åä»åºå±æ建ä¸äºä¼ä¸çº§åºç¨ç¨åºè设计çãï¼ä¾å¦ï¼å®£ç§°é¢åä¼ä¸åºç¨è设计ç Openbiz Cubi å°±æ¯åºäºZend Frameworkæ¡æ¶ä¹ä¸èæ建çãï¼è¯¥æ¡æ¶æ¯é«åº¦æ¨¡ååçãè¿æå³çä½ å¯ä»¥æä½ çå®é éè¦æ¥å¼ç¨Zendç代ç ãæäºå½æ°åºçè³å¯ä»¥å¾å®¹ç被æååºæ¥ åç¬ä½¿ç¨ï¼ä¾å¦Zend_Gdataï¼è¿ä¹æ¯ä¸ªä½è¦åæ§çç¹ç¹ï¼ä½¿ç¨Zendæ¡æ¶ï¼ä½ ä¸å¿ éè¦éµä»å®çMVCæ¶æï¼ï¼è½ç¶ä½ æ好è½è¿ä¹åï¼ï¼å¹¶ä¸å®è¿æä¾ äºè®¸å¤å 建çé«çº§åè½ç¨äºå®æä¸ç°æçwebæå¡æ´åï¼å¤è¯è¨ååå®ç°åå æµè¯è¿äºä»»å¡ã
CodeIgniter
CodeIgniter æ¯ä¸ä¸ªPHP5.2+ çMVCæ¡æ¶ï¼å®ä½ç§¯å°å·§åå ·æ丰å¯çææ¡£èµæºãé常被称为âåå¦è æ¡æ¶âï¼å 为å®ç¸å¯¹å®¹æè¯ç¨åè¾ççå¦ä¹ æ²çº¿ï¼æ¤å¤CodeIgniterä¹æ¯ååçµ æ´»å强大çã该æ¡æ¶æ¥æä¸ä¸ªé常åºå¤§ç社åºæ¯æã并ä¸å¨ç¤¾åºéé¢å¾å®¹ææ¾å°å¤§éçCIå½æ°åºï¼ä½ å¯ä»¥å¤§èç梦æ³ï¼ ä¹è®¸ä½ æ£éè¦åçäºæ å¨ç¤¾åºçæ个交æµï¼æ个人已ç»æå®å®ç°äºã
Symfony
Symfony æ¯æå¤èçPHPæ¡æ¶ä¹ä¸ï¼ç¸ä¿¡ä½ ä»ä»çç½ç«é£æ ¼ä¸ä¹åç°è¿ä¸ç¹äºï¼ï¼ä»åæ ·ä¹æ¯è½¬ä¸ºä¼ä¸çº§Webåºç¨ç¨åºè设计çãç¶èï¼å¯¹äºä»æè½æä¾çææå¨ååæ§ è½èè¨ï¼å®åªæ¥æå¾å°çä½ç§¯å¹¶ä¸é常容æé ç½®å¨å¤§å¤æ°phpç主æºç¯å¢ä¸ãç±äºä»ç年头æé¿ä¹ ï¼ä½ ä¼å¾å®¹ææ¾å°è®¸å¤å ³äºSymfonyçæç¨ã书记çèµ æï¼å¯¹äºæ°ææ¥è¯´ï¼è¿ç»å¯¹æ¯ä»¶å¥½äºå¿ã
Symfony使ç¨å½ä»¤è¡ä»£ç çæå·¥å ·æ¥ä¸ºé¡¹ç®å¿«éçææéç代ç ï¼è¿ç§æ¹å¼ä¹è®¸å¯¹äºæäºå¼å人åæ¥è¯´æ¯åææªé»çï¼å¨é£ä¸ªå¹´å¤´ï¼ä¹è®¸ å§ãããï¼ç¶åï¼ä»å¯ä»¥å¸®å©ä½ å¨å¾ççæ¶é´éå®æ代ç 并æ¯ä»ä»¬å¯ä»¥è¿è¡ãSymfonyçç½ç«ä¸ææºäºå¤§éçæç¨åèä¾ä»£ç ï¼æ¥å¸®å©ä½ çæææ¡ä»ä»¬ã
Yii Framework
Yii æ¯ä¸ä¸ªé«åº¦æ¨¡ååï¼é«æ§è½çPHP5æ¡æ¶ï¼ä¸é¨ä¸ºäºWebåºç¨ç¨åºèå¼åãYiiéç¨äºå¤§éçå½ä»¤è¡çæå·¥å ·ï¼è®©ä½ å¯ä»¥å¿«éççæä¸äºä»£ç ï¼å æ¤ï¼ä»æé åäºå欢å¨å½ä»¤è¡çé»çªå£ä¸æ²æ²ææç人ãææè¿äºä»£ç çæå·¥å ·æå³çä½ éè¦è®°ä½æ´å¤çå½ä»¤ååæ°ï¼ä½æ¯ä¸ç¹ä½ åå°äºï¼ä½ ä¼åç°ï¼å®ä»¬å°å¤§å¤§åå°ä½ æè¦è± è´¹çæ¶é´æ¥è®¾ç½®åé ç½®ä½ çåºç¨ç¨åºã
è¿ç§å¼åæ¹å¼ é常类似äºOpenbiz Appbuilderææä¾çå导å¼ç代ç çææ¹å¼ï¼æ大çä¸åç¹æ¯Yiiæ¯åºäºå½ä»¤è¡å»çæ代ç ï¼Openbiz Appbuilderæ¯å¨å¾å½¢çé¢ä¸çæ代ç ã
ThinkPHP
ThinkPHPæ¯ä¸ä¸ªå è´¹å¼æºçï¼å¿«éãç®åçé¢å对象çè½»é级PHP å¼åæ¡æ¶ï¼éµå¾ª Apache2 å¼æºåè®®åå¸ï¼æ¯ä¸ºäºç®åä¼ä¸çº§åºç¨å¼ååææ·WEBåºç¨å¼åèè¯ççãåé´äºå½å¤å¾å¤ä¼ç§çæ¡æ¶å模å¼ï¼ä½¿ç¨é¢å对象çå¼åç»æå MVC 模å¼ï¼èåäº Struts ç Action ææ³å JSP ç TagLibï¼æ ç¾åºï¼ã RoR çORMæ å°å ActiveRecord 模å¼ï¼ å°è£ äº CURD åä¸äºå¸¸ç¨æä½ï¼ åä¸å ¥å£æ¨¡å¼çï¼å¨æ¨¡çå¼æãç¼åæºå¶ã认è¯æºå¶åæ©å±æ§æ¹é¢åæç¬ç¹ç表ç°ã
Yii Framework
Yiiæ¯ä¸ä¸ªåºäºç»ä»¶çé«æ§è½PHPæ¡æ¶ï¼ç¨äºå¼å大åWebåºç¨ãYiiéç¨ä¸¥æ ¼çOOPç¼åï¼å¹¶æçå®åçåºå¼ç¨ä»¥åå ¨é¢çæç¨ãä» MVCï¼DAO/ActiveRecordï¼widgetsï¼cachingï¼ç级å¼RBACï¼Webæå¡ï¼å°ä¸»é¢åï¼INåLNï¼Yiiæä¾äºä»æ¥Web 2.0åºç¨å¼åæéè¦çå ä¹ä¸ååè½ãäºå®ä¸ï¼Yiiæ¯æææççPHPæ¡æ¶ä¹ä¸ã
Yiiæ¯ä¸ä¸ªé«æ§è½çPHP5çwebåºç¨ç¨åºå¼åæ¡æ¶ãéè¿ä¸ä¸ªç®åçå½ä»¤è¡å·¥å · yiic å¯ä»¥å¿«éå建ä¸ä¸ªwebåºç¨ç¨åºç代ç æ¡æ¶ï¼å¼åè å¯ä»¥å¨çæç代ç æ¡æ¶åºç¡ä¸æ·»å ä¸å¡é»è¾ï¼ä»¥å¿«éå®æåºç¨ç¨åºçå¼å
phalcon
Phalconæ¯ä¸å¥å®ç°MVCæ¶æçé«æ§è½PHPåºç¨ç¨åºæ¡æ¶ãåå§çæ¬åå¸äºå¹´æï¼å¼æ¾æºä»£ç 并åºäºBSDæææ¡æ¬¾ãä¸å ¶ä»å¤§é¨åçPHPæ¡æ¶ä¸åï¼Phalconæ¯ä»¥æ©å çæ¹å¼ä»¥Cè¯è¨æç¼åï¼å æ¤Phalconçæ§è¡é度é«è¿å ¶ä»PHPæ¡æ¶ï¼å¹¶ä¸æ¶èæ´å°çèµæºï¼æ ¹æ®å®æ¹çæµè¯ï¼Phalconæ¯ç®åä¸çä¸é度æå¿«çPHPæ¡æ¶ä¹ä¸ã[1]
PHPè¯è¨çç¹ç¹ï¼
phpæåªäºä¼å¿åç¹ç¹
PHPçä¼å¿å æ¬ï¼
PHPå¼æ¾çæºä»£ç
ææçPHPæºä»£ç äºå®ä¸é½å¯ä»¥å¾å°ã
PHPæ¯å è´¹ç
åå ¶å®ææ¯ç¸æ¯ï¼PHPæ¬èº«å è´¹ä¸æ¯å¼æºä»£ç ã
å¿«æ·æ§
ç¨åºå¼åå¿«ï¼è¿è¡å¿«ï¼ææ¯æ¬èº«å¦ä¹ å¿«ãåµå ¥äºHTMLï¼å 为PHPå¯ä»¥è¢«åµå ¥äºHTMLè¯è¨ï¼å®ç¸å¯¹äºå ¶ä»è¯è¨ãç¼è¾ç®åï¼å®ç¨æ§å¼ºï¼æ´éååå¦è ã
跨平å°æ§å¼º
ç±äºPHPæ¯è¿è¡å¨æå¡å¨ç«¯çèæ¬ï¼å¯ä»¥è¿è¡å¨UNIXãLINUXãWINDOWSãMacOSä¸ã
æçé«
PHPæ¶èç¸å½å°çç³»ç»èµæºã
å¾åå¤ç
ç¨PHPå¨æå建å¾å,自动发抖音源码PHPå¾åå¤çé»è®¤ä½¿ç¨GD2ãä¸ä¹å¯ä»¥é 置为使ç¨imagemagickè¿è¡å¾åå¤çã
é¢å对象
å¨php4,php5ä¸ï¼é¢å对象æ¹é¢é½æäºå¾å¤§çæ¹è¿ï¼phpå®å ¨å¯ä»¥ç¨æ¥å¼å大ååä¸ç¨åºã
ä¸ä¸ä¸æ³¨
PHPæ¯æèæ¬è¯è¨ä¸ºä¸»ï¼å为类Cè¯è¨ï¼å®¹æå ¥é¨ã
phpçä¼ç¹æåªäº
PHPä½ä¸ºä¸ç§èæ¬è¯è¨ï¼æ以ä¸å 个ä¼ç¹ï¼
1.æäºå¦ä¹ å使ç¨ï¼PHPçè¯æ³æäºç解åä¸æï¼å¯¹åå¦è æ¥è¯´æ¯è¾å好ï¼å¾å®¹æææ¡ã
2.é«åº¦å ¼å®¹æ§ï¼PHPå¯ä»¥è¿è¡å¨å ä¹ææçæä½ç³»ç»ä¸ï¼å¹¶ä¸æ¯æ大å¤æ°çWebæå¡å¨åæ°æ®åºã
3.足å¤çæ©å±æ§ï¼PHPæ¯æ大éçæ©å±ååºï¼åç§åè½æ¨¡ååï¼æ¹ä¾¿å¿«æ·ç模ååæä½ï¼å¯ä»¥è®©å¼åè è½»æ¾å建å¤æçåè½ã
4.å¼åé度快ï¼PHPæä¾ä¸°å¯çå ç½®å½æ°åç±»åºï¼å¯ä»¥å¸®å©å¼åè å¿«éå®æ代ç ç¼åï¼å¹¶å¿«éè¿ä»£å¼åã
5.é«æï¼PHPçè¿è¡é度ç¸å¯¹è¾å¿«ï¼å ç¨èµæºä½ï¼å¯ä»¥å¤ç大éç访é®è¯·æ±ï¼éåç¨äºé«å¹¶åçWebç½ç«ã
6.å®å ¨æ§é«ï¼PHPææççå®å ¨æºå¶åé²èæªæ½ï¼å¯ä»¥ææé²æ¤ä¸äºå¸¸è§çç½ç»æ»å»ï¼å¦SQLæ³¨å ¥ãXSSæ»å»çã
7.社åºæ¯æ强大ï¼PHPæä¸ä¸ªå¼ºå¤§çå¼åè 社åºï¼æä¾å¤§éçå·¥å ·ãæç¨åæ¯æï¼æ¹ä¾¿å¼åè è½å¤å¿«éå¾å°å¸®å©ã
æ»çæ¥è¯´ï¼PHPå ·ææå¦æç¨ãé«æãçµæ´»ãå¯æ©å±æ§å¼ºãå®å ¨ç¨³å®çç¹ç¹ï¼è¿äºä¼ç¹ä½¿å¾å®æ为äºWebå¼åé¢åä¸å¹¿æ³ä½¿ç¨çä¸ç§ç¼ç¨è¯è¨ã
phpçä¼ç¹æ»ç»phpæåªäºä¼ç¹PHPä¼ç¹ï¼
1.å ¥é¨å¿«ï¼æå ¶å®è¯è¨åºç¡çç¨åºåäºå¨å·¦å³çæ¶é´å°±å¯ä»¥å ¥é¨ï¼ä¸ä¸ªæå·¦å³çæ¶é´åºæ¬ä¸å°±å¯ä»¥å¼åç®åç项ç®äºã
2.å¼åææ¬ä½ï¼PHPæç»å ¸çç»åå°±æ¯ï¼Linux+Apache+MySQL+PHPãé常éåå¼åä¸å°åçwebåºç¨ï¼å 为ä¸æ容æï¼æ以å¼åçé度æ¯è¾å¿«ãèä¸ææç软件é½æ¯å¼æºå è´¹çï¼å¯ä»¥åå°æå ¥ã
3.PHPæ¯è§£éæ§çèæ¬è¯è¨ï¼åå®ä»£ç 以åå³å¯ä»¥æ§è¡ï¼ä¸åc,java,c++çè¯è¨è¿éè¦å»ç¼è¯æ§è¡ï¼ç¸å¯¹æ¥è¯´æ¯è¾èçæ¶é´ã
4.ç¸å¯¹æ¥è¯´ï¼PHPç¨åºåçèªæ°´çå¹³åå·¥èµè¦æ¯c,c++,javaç¨åºåçå¹³åå·¥èµè¦ä½ä¸äºï¼ç¹å«æ¯å¯¹äºä¸å°åä¼ä¸æ¥è¯´å¯ä»¥è约ä¸äºææ¬ã
5.é ç½®åé¨ç½²ç¸å¯¹ç®åä¸äºï¼å¯¹æ¯JAVAå¼åæ¥è¯´ï¼JAVAå¼åçé 置就å¤æå¤äºï¼ä»ä¹StructsãSpringãHibernateãTomcatççå¾å¤å°æ¹é½éè¦é ç½®ï¼çè³ä½ å¨ç¨åºä¸æ¯åä¸ä¸ªSQLè¯å¥é½éè¦å å¨Hibernateä¸é ç½®ä¸ä¸ï¼ææ¶éæ°é¨ç½²ä¸ä¸ªclassæ件æjaræ件è¿å¯è½éè¦éå¯Webæå¡å¨(TomcatæResinæå ¶å®çWebæå¡å¨)使æ°é¨ç½²çåºæ件çæã
PHPå¼åä¸ä¸»è¦æ¯PHPèªèº«çé ç½®æ件åWebæå¡å¨çé ç½®(å¦ApacheæNginxæLigçäºä»¶é©±å¨çæ¡æ¶ï¼Pradoï¼æ¯æ类似RubyOnRailsçå¿«éå¼åçæ¡æ¶ï¼Cakeççï¼è¶³å¤æ»¡è¶³ä½ çåºç¨éæ±ã
6.PHP5å·²ç»ææççé¢å对象ä½ç³»ï¼è½å¤éåºåºæ¬çé¢å对象è¦æ±ãéåå¼å大å项ç®ã
7.ææçç社åºæ¥æ¯æPHPçå¼åã
8.ç®åå·²ç»å¾å¤å¤§ååºç¨é½æ¯ä½¿ç¨PHPï¼æ¯å¦æ·å®ç½ãYahooããSinaçç大åé¨æ·ï¼å¾å¤éç¨PHPæ¥ä½ä¸ºä»ä»¬çå¼åè¯è¨ï¼æ以大åé¨æ·é½è½å¤éç¨å®ï¼ææ³è¶³å¤è½å¤ä½ ç使ç¨äºã
9.æå¾å¤å¼æºçæ¡æ¶æå¼æºçç³»ç»å¯ä»¥ä½¿ç¨ï¼æ¯å¦æ¯è¾ç¥åçå¼æºæ¡æ¶æZendFrameworkãCakePHPãCodeIgniterãsymfonyçï¼å¼æºè®ºåæDiscuz!ãPhpwindçï¼å¼æºå客WordPressï¼å¼æºç½åºç³»ç»å¦EcshopãShopExçï¼å¼æºçSNSç³»ç»å¦UCHomeãThinkSNSçã
PHPè¯è¨çç®ä»PHPè¯è¨çç®ä»
æ们ç¥éç½ç«å¼åï¼ç½ç«å¨æè¯è¨æå¾å¤ï¼æ¯å¦aspï¼asp.netï¼phpï¼jspãè¿é为ä½éæ©PHPè¯è¨æ¥è®¨è®ºï¼ä¸æ¥æå¦çå°±æ¯è¿ä¸ªè¯è¨ï¼æ¯è¾çæä¸ç¹ï¼äºæ¥ä»¥ç®åå¸åºçéæ±éèè¨PHPç®æ¯å¾æµè¡çãä¸é¢æå°±æ¥å ·ä½ä»ç»ä¸ä¸è¿é¨è¯è¨ã
å®ä¹ï¼
PHPåå§ä¸ºPersonalHomePageç缩åï¼å·²ç»æ£å¼æ´å为"PHP:HypertextPreprocessor"ã注æä¸æ¯âHypertextPreprocessorâç缩åï¼è¿ç§å°å称æ¾å°å®ä¹ä¸çåæ³è¢«ç§°ä½éå½ç¼©åãPHPäºå¹´ç±RasmusLerdorfå建ï¼ååå¼å§æ¯RasmusLerdorf为äºè¦ç»´æ¤ä¸ªäººç½é¡µèå¶ä½ç'ä¸ä¸ªç®åçç¨Perlè¯è¨ç¼åçç¨åºãè¿äºå·¥å ·ç¨åºç¨æ¥æ¾ç¤ºRasmusLerdorfç个人履åï¼ä»¥åç»è®¡ç½é¡µæµéãåæ¥åç¨Cè¯è¨éæ°ç¼åï¼å æ¬å¯ä»¥è®¿é®æ°æ®åºãä»å°è¿äºç¨åºåä¸äºè¡¨åç´è¯å¨æ´åèµ·æ¥ï¼ç§°ä¸ºPHP/FIãPHP/FIå¯ä»¥åæ°æ®åºè¿æ¥ï¼äº§çç®åçå¨æç½é¡µç¨åºã
PHPçç¹æ§ï¼
1.PHPç¬ç¹çè¯æ³æ··åäºCãJavaãPerl以åPHPèªåæ°çè¯æ³ã
2.PHPå¯ä»¥æ¯CGIæè Perlæ´å¿«éçæ§è¡å¨æç½é¡µââå¨æ页é¢æ¹é¢ï¼ä¸å ¶ä»çç¼ç¨è¯è¨ç¸æ¯ï¼
PHPæ¯å°ç¨åºåµå ¥å°HTMLææ¡£ä¸å»æ§è¡ï¼æ§è¡æçæ¯å®å ¨çæhtmLæ è®°çCGIè¦é«è®¸å¤;
PHPå ·æé常强大çåè½ï¼ææçCGIçåè½PHPé½è½å®ç°ã
3.PHPæ¯æå ä¹æææµè¡çæ°æ®åºä»¥åæä½ç³»ç»ã
4.æéè¦çæ¯PHPå¯ä»¥ç¨CãC++è¿è¡ç¨åºçæ©å±!
PHPçä¼å¿ï¼
ä¸ãè¯æ³ç®åææãPHP主è¦æ¯è¢«ç¨æ¥åWebå¼åï¼åºç¨ç¯å¢æ¯è¾å纯ï¼æ以è¯æ³ç®åææ!
äºãæ¦å¿µæ§ç¥è¯å°ãè¾å°æ¶ååºå±æä½ï¼è¯è¨çå¾å¤åºå±çç»èé®é¢æ éææ¡ï¼æ以ç论æ¦å¿µè¾å°ï¼é常æå¦æç¨ã
ä¸ãå®ç¨æ§æ强ãPHPæä¾äºå¾å¤å®ç¨èä¸æ¹ä¾¿çå ç½®å½æ°ï¼è®©ä»£ç æ´å¥½åãå¦å¤PHPææççå¼åæ¡æ¶ï¼å¸®ä½ å¿«é建ç«ï¼è½»æ¾ä¸æã
åãæé«æç¼ç¨è¯è¨ãPHP主è¦æ¯åºç¨äºwebå¼åé¢åï¼å ¶æ§è¡æçè¦è¿é«äºå ¶ä»ç¼ç¨è¯è¨ï¼å¹¶ä¸PHPè¿å¯ä»¥æ§è¡ç¼è¯å代ç ï¼ç¼è¯å¯ä»¥è¾¾å°å å¯åä¼å代ç è¿è¡ï¼ä½¿ä»£ç è¿è¡æ´å¿«ã
äºãæéå端å端移å¨ç«¯ãPHPä¸ä» å¯ä»¥å®æå端页é¢ä¸å端平å°çæ建ï¼å¹¶ä¸å¯ä»¥éè¿æ··åå¼å¼åï¼å®æ移å¨ç«¯åºç¨çå¼åä»»å¡ï¼å®ç¾éé iOSä¸Androidæä½ç³»ç»ï¼ä¸æå¨æï¼å ¨é¨æå®!
å ãç½ç«å¼åé¦éè¯è¨ãå½å å¤å大ç¥åä¼ä¸ï¼å¦è°·æãfacebookãé¿éå·´å·´ãç¾åº¦ãæ°æµªçå½å å¤ä¸çº¿äºèç½ä¼ä¸çç½ç«ï¼å为PHPææ¯å¼åçï¼åªå 为PHPæ¯åç½ç«é¦éè¯è¨ï¼æ²¡æä¹ä¸!
phpæ¯ä»ä¹PHPå±äºç¼ç¨è¯è¨çä¸ç§ï¼æ¯ä¸ç§ç¨äºå建å¨æå交äºå¼HTMLç½é¡µçèæ¬è¯è¨ã
ç¼ç¨è¯è¨æ¯ä¸ç§è¢«æ ååç交æµæå·§ï¼ç¨æ¥å计ç®æºååºæ令ï¼å®ä¹è®¡ç®æºç¨åºï¼è®©ç¨åºåè½å¤åç¡®å°å®ä¹è®¡ç®æºæéè¦ä½¿ç¨çæ°æ®ï¼å¹¶ç²¾ç¡®å°å®ä¹å¨ä¸åæ åµä¸æåºå½éåçè¡å¨çä¸ç§è®¡ç®æºè¯è¨ãèç¼ç¨è¯è¨å å«å¾å¤ç»åï¼èPHPå°±æ¯å ¶ä¸ä¸ç§ã
å®ç主è¦ç¹æ§ä¸ºï¼
â å¼æºæ§åå è´¹æ§
ç±äºPHPç解éå¨çæºä»£ç æ¯å ¬å¼çï¼æ以å®å ¨ç³»æ°è¾é«çç½ç«å¯ä»¥èªå·±æ´æ¹PHPç解éç¨åºãå¦å¤ï¼PHPè¿è¡ç¯å¢ç使ç¨ä¹æ¯å è´¹çã
â¡å¿«æ·æ§
PHPæ¯ä¸ç§é常容æå¦ä¹ å使ç¨çä¸é¨è¯è¨ï¼å®çè¯æ³ç¹ç¹ç±»ä¼¼äºCè¯è¨ï¼ä½å没æCè¯è¨å¤æçå°åæä½ï¼èä¸åå å ¥äºé¢å对象çæ¦å¿µï¼åå ä¸å®å ·æç®æ´çè¯æ³è§åï¼ä½¿å¾å®æä½ç¼è¾é常ç®åï¼å®ç¨æ§å¾å¼ºã
â¢æ°æ®åºè¿æ¥ç广æ³æ§
PHPå¯ä»¥ä¸å¾å¤ä¸»æµçæ°æ®åºå»ºç«èµ·è¿æ¥ï¼å¦MySQLãODBCãOracleçï¼PHPæ¯å©ç¨ç¼è¯çä¸åå½æ°ä¸è¿äºæ°æ®åºå»ºç«èµ·è¿æ¥çï¼PHPLIBå°±æ¯å¸¸ç¨ç为ä¸è¬äºå¡æä¾çåºåºã
â£é¢åè¿ç¨åé¢å对象并ç¨
å¨PHPè¯è¨ç使ç¨ä¸ï¼å¯ä»¥åå«ä½¿ç¨é¢åè¿ç¨åé¢å对象ï¼èä¸å¯ä»¥å°PHPé¢åè¿ç¨åé¢å对象两è ä¸èµ·æ··ç¨ï¼è¿æ¯å ¶å®å¾å¤ç¼ç¨è¯è¨æ¯åä¸å°çã
ä¼ç¹
â æµè¡ï¼å®¹æä¸æ
PHPæ¯ç®åææµè¡çç¼ç¨è¯è¨ï¼è¿æ¯åº¸ç½®çãå®é©±å¨å ¨çè¶ è¿2亿å¤ä¸ªç½ç«ï¼æå ¨çè¶ è¿.7%çå ¬å ±ç½ç«å¨æå¡å¨ç«¯éç¨PHPãPHP常ç¨çæ°æ®ç»æé½å ç½®äºï¼ä½¿ç¨èµ·æ¥æ¹ä¾¿ç®åï¼ä¹ä¸ç¹é½ä¸å¤æï¼è¡¨è¾¾è½åç¸å½çµæ´»ã
â¡å¼åèä½å¾å¤
å¨æå¡å¨ç«¯çç½ç«ç¼ç¨ä¸PHPä¼æ´å®¹æ帮å©ä½ æ¾å°å·¥ä½ãå¾å¤äºèç½ç¸å ³ä¼ä¸é½å¨ä½¿ç¨PHPå¼åæ¡æ¶ï¼æ以å¯ä»¥è¯´å¸åºå¯¹PHPçå¼åç¨åºåçéæ±è¿æ¯æ¯è¾å¤§çã
â¢ä»ç¶å¨ä¸æåå±
PHPå¨ä¸æå ¼å®¹ç类似closuresåå½å空é´çææ¯ï¼åæ¶å ¼é¡¾æ§è½åå½ä¸æµè¡çæ¡æ¶ãçæ¬æ¯7ä¹åï¼ä¸ç´å¨æä¾æ´é«æ§è½çåºç¨ã
â£å¯æ¤å ¥æ§å¼º
PHPè¯è¨å¨è¡¥ä¸æ¼æ´å级è¿ç¨ä¸ï¼æ ¸å¿é¨åæ¤å ¥ç®åæè¡ï¼ä¸é度快ã
â¤æå±æ§å¼º
PHPè¯è¨å¨æ°æ®åºåºç¨è¿ç¨ä¸ï¼å¯ä»¥ä»æ°æ®åºè°ååç±»æ°æ®ï¼æ§è¡æçé«
phpæ¯ä»ä¹ææä»ä¹æ¯phpPHPæ¯æè¶ ææ¬é¢å¤çå¨ï¼æ¯ä¸ç§éç¨å¼æºèæ¬è¯è¨ãPHPæ¯å¨æå¡å¨ç«¯æ§è¡çèæ¬è¯è¨ï¼ä¸Cè¯è¨ç±»ä¼¼ï¼æ¯å¸¸ç¨çç½ç«ç¼ç¨è¯è¨ãå ¶ä¸ç¨æ§éæ¸å¨åºç¨è¿ç¨ä¸æ¾ç°ï¼å ¶ææ¯æ°´å¹³çä¼å£ä¸å¦å°ç´æ¥å½±åç½ç«çè¿è¡æçãå ¶ç¹ç¹æ¯å ·æå ¬å¼çæºä»£ç ï¼å¨ç¨åºè®¾è®¡ä¸ä¸éç¨åè¯è¨ç¸ä¼¼æ§è¾é«ï¼å æ¤å¨æä½è¿ç¨ä¸ç®åææï¼å¯æä½æ§å¼ºãåæ¶ï¼PHPè¯è¨å ·æè¾é«çæ°æ®ä¼ éå¤çæ°´å¹³åè¾åºæ°´å¹³ï¼å¯ä»¥å¹¿æ³åºç¨å¨Windowsç³»ç»ååç±»Webæå¡å¨ä¸ã
å¦ææ°æ®éè¾å¤§ï¼PHPè¯è¨è¿å¯ä»¥æ宽é¾æ¥é¢ï¼ä¸åç§æ°æ®åºç¸è¿ï¼ç¼è§£æ°æ®åå¨ãæ£ç´¢åç»´æ¤ååã