1.pradoԴ?华为运动健康源码?
2.PHPè¯è¨çç¹ç¹ï¼
pradoԴ??
JSP ASP PHP
è¿è¡é度 å¿« è¾å¿« è¾å¿«
è¿è¡èæ è¾å° è¾å¤§ è¾å¤§
é¾æç¨åº¦ 容æææ¡ ç®å ç®å
è¿è¡å¹³å° ç»å¤§é¨åå¹³å°åå¯ Windowså¹³å° Windows/UNIXå¹³å°
æ©å±æ§ 好 è¾å¥½ è¾å·®
å®å ¨æ§ 好 è¾å·® 好
å½æ°æ§ å¤ è¾å° å¤
æ°æ®åºæ¯æ å¤ å¤ å¤
ååæ¯æ å¤ è¾å° è¾å¤
对XMLçæ¯æ æ¯æ ä¸æ¯æ æ¯æ
对ç»ä»¶çæ¯æ æ¯æ æ¯æ ä¸æ¯æ
对åå¸å¼å¤ççæ¯æ æ¯æ æ¯æ ä¸æ¯æ
åºç¨ç¨åº è¾å¹¿ è¾å¹¿ è¾å¹¿
----------------------------------------------------
转载:
æ ¢æ ¢çå§!
ASPãJSPä¸PHPçæ¯è¾
ç®åï¼æ常ç¨çä¸ç§å¨æç½é¡µè¯è¨æASP(Active Server Pages),JSP(Java Server Pages),
PHP (Hypertext Preprocessor)ã
ç® ä»
ASPå ¨åActive Server Pagesï¼æ¯ä¸ä¸ªWEBæå¡å¨ç«¯çå¼åç¯å¢ï¼ å©ç¨å®å¯ä»¥äº§çåè¿
è¡å¨æçã交äºçãé«æ§è½çWEBæå¡åºç¨ç¨åºãASPéç¨èæ¬è¯è¨VB Scriptï¼Java script
ï¼ä½ä¸ºèªå·±çå¼åè¯è¨ã
PHPæ¯ä¸ç§è·¨å¹³å°çæå¡å¨ç«¯çåµå ¥å¼èæ¬è¯è¨. å®å¤§éå°åç¨C,JavaåPerlè¯è¨çè¯æ³
, 并è¦åPHPèªå·±çç¹æ§,使WEBå¼åè è½å¤å¿«éå°ååºå¨æçæ页é¢.å®æ¯æç®åç»å¤§å¤æ°æ°
æ®åºãè¿æä¸ç¹ï¼PHPæ¯å®å ¨å è´¹çï¼ä¸ç¨è±é±ï¼ä½ å¯ä»¥ä»PHPå®æ¹ç«ç¹(
t)èªç±ä¸è½½ãèä¸ä½ å¯ä»¥ä¸åéå¶å°è·å¾æºç ï¼çè³å¯ä»¥ä»ä¸å è¿ä½ èªå·±éè¦çç¹è²ã
JSP æ¯Sunå ¬å¸æ¨åºçæ°ä¸ä»£ç«ç¹å¼åè¯è¨ï¼ä»å®å ¨è§£å³äºç®åASP,PHPçä¸ä¸ªéç ï¼ï¼
èæ¬çº§æ§è¡ï¼æ®è¯´PHP4 ä¹å·²ç»å¨Zend çæ¯æä¸ï¼å®ç°ç¼è¯è¿è¡ï¼.Sun å ¬å¸åå©èªå·±å¨Jav
a ä¸çä¸å¡é 诣ï¼å°Java ä»Java åºç¨ç¨åº å Java Applet ä¹å¤ï¼åææ°çç¡æï¼å°±æ¯Js
pï¼ï¼Java Server PageãJsp å¯ä»¥å¨ServerletåJavaBeançæ¯æä¸ï¼å®æåè½å¼ºå¤§çç«ç¹
ç¨åºã
ä¸è é½æä¾å¨ HTML 代ç ä¸æ··åæç§ç¨åºä»£ç ãç±è¯è¨å¼æ解éæ§è¡ç¨åºä»£ç çè½åã
ä½JSP代ç 被ç¼è¯æ Servlet å¹¶ç± Java èææºè§£éæ§è¡ï¼è¿ç§ç¼è¯æä½ä» å¨å¯¹ JSP 页é¢ç
第ä¸æ¬¡è¯·æ±æ¶åçãå¨ ASP ãPHPãJSP ç¯å¢ä¸ï¼ HTML 代ç 主è¦è´è´£æè¿°ä¿¡æ¯çæ¾ç¤ºæ ·å¼
ï¼èç¨åºä»£ç åç¨æ¥æè¿°å¤çé»è¾ãæ®éç HTML 页é¢åªä¾èµäº Web æå¡å¨ï¼è ASP ãPH
PãJSP 页é¢éè¦éå çè¯è¨å¼æåæåæ§è¡ç¨åºä»£ç ãç¨åºä»£ç çæ§è¡ç»æ被éæ°åµå ¥å°
HTML 代ç ä¸ï¼ç¶åä¸èµ·åéç»æµè§å¨ã ASP ãPHPã JSPä¸è é½æ¯é¢å Web æå¡å¨çææ¯
ï¼å®¢æ·ç«¯æµè§å¨ä¸éè¦ä»»ä½éå ç软件æ¯æã
ææ¯ç¹ç¹
ASP:
1. ä½¿ç¨ VBScript ã JScript çç®åææçèæ¬è¯è¨ï¼ç»å HTML 代ç ï¼å³å¯å¿«éå°å®æ
ç½ç«çåºç¨ç¨åºã
2. æ é¡» compile ç¼è¯ï¼å®¹æç¼åï¼å¯å¨æå¡å¨ç«¯ç´æ¥æ§è¡ã
3. 使ç¨æ®éçææ¬ç¼è¾å¨ï¼å¦ Windows çè®°äºæ¬ï¼å³å¯è¿è¡ç¼è¾è®¾è®¡ã
4. ä¸æµè§å¨æ å ³ (Browser Independence), ç¨æ·ç«¯åªè¦ä½¿ç¨å¯æ§è¡ HTML ç çæµè§å¨ï¼å³
å¯æµè§ Active Server Pages æ设计çç½é¡µå 容ã Active Server Pages æ使ç¨çèæ¬è¯
è¨ (VBScript ã Jscript) åå¨ WEB æå¡å¨ç«¯æ§è¡ï¼ç¨æ·ç«¯çæµè§å¨ä¸éè¦è½å¤æ§è¡è¿äº
èæ¬è¯è¨ã
5.Active Server Pages è½ä¸ä»»ä½ ActiveX scripting è¯è¨ç¸å®¹ãé¤äºå¯ä½¿ç¨ VBScript
æ JScript è¯è¨æ¥è®¾è®¡å¤ï¼è¿éè¿ plugï¼in çæ¹å¼ï¼ä½¿ç¨ç±ç¬¬ä¸æ¹ææä¾çå ¶ä»èæ¬è¯è¨
ï¼è¬å¦ REXX ã Perl ã Tcl çãèæ¬å¼ææ¯å¤çèæ¬ç¨åºç COM(Component Object Mod
el) ç©ä»¶ã
6. å¯ä½¿ç¨æå¡å¨ç«¯çèæ¬æ¥äº§ç客æ·ç«¯çèæ¬ã
7.ActiveX Server Components(ActiveX æå¡å¨å 件 ) å ·ææ éå¯æ©å æ§ãå¯ä»¥ä½¿ç¨ Vi
sual Basic ã Java ã Visual Cï¼ï¼ ã COBOL çç¼ç¨è¯è¨æ¥ç¼åä½ æéè¦çActiveX Se
rver Component ã
PHP:
1ï¼æ°æ®åºè¿æ¥
PHPå¯ä»¥ç¼è¯æå ·æä¸è®¸å¤æ°æ®åºç¸è¿æ¥çå½æ°ãPHPä¸MySQLæ¯ç°å¨ç»ä½³çç»åãä½ è¿å¯
以èªå·±ç¼åå¤å´çå½æ°åé´æ¥ååæ°æ®åºãéè¿è¿æ ·çéå¾å½ä½ æ´æ¢ä½¿ç¨çæ°æ®åºæ¶ï¼å¯ä»¥
è½»æ¾å°æ´æ¹ç¼ç 以éåºè¿æ ·çåãPHPLIBå°±æ¯æ常ç¨çå¯ä»¥æä¾ä¸è¬äºå¡éè¦çä¸ç³»ååºåº
ãä½PHPæä¾çæ°æ®åºæ¥å£æ¯æå½¼æ¤ä¸ç»ä¸ï¼æ¯å¦å¯¹Oracle, MySQLï¼ Sybaseçæ¥å£ï¼å½¼æ¤
é½ä¸ä¸æ ·ãè¿ä¹æ¯PHPçä¸ä¸ªå¼±ç¹ã
2ï¼é¢å对象ç¼ç¨
PHPæä¾äºç±»å对象ãåºäºwebçç¼ç¨å·¥ä½é常éè¦é¢å对象ç¼ç¨è½åãPHPæ¯ææé å¨ã
æåç±»çã
JSP:
1ï¼å°å 容ççæåæ¾ç¤ºè¿è¡å离
使ç¨JSPææ¯ï¼Web页é¢å¼å人åå¯ä»¥ä½¿ç¨HTMLæè XMLæ è¯æ¥è®¾è®¡åæ ¼å¼åæç»é¡µé¢ã使
ç¨JSPæ è¯æè å°èæ¬æ¥çæ页é¢ä¸çå¨æå 容ãçæå 容çé»è¾è¢«å°è£ å¨æ è¯åJavaBeans
ç»ä»¶ä¸ï¼å¹¶ä¸æç»å¨å°èæ¬ä¸ï¼ææçèæ¬å¨æå¡å¨ç«¯è¿è¡ãå¦ææ ¸å¿é»è¾è¢«å°è£ å¨æ è¯å
Beansä¸ï¼é£ä¹å ¶ä»äººï¼å¦Web管ç人åå页é¢è®¾è®¡è ï¼è½å¤ç¼è¾å使ç¨JSP页é¢ï¼èä¸å½±åå
容ççæã
å¨æå¡å¨ç«¯ï¼JSPå¼æ解éJSPæ è¯åå°èæ¬ï¼çææ请æ±çå 容ï¼ä¾å¦ï¼éè¿è®¿é®Java
Beansç»ä»¶ï¼ä½¿ç¨JDBCTMææ¯è®¿é®æ°æ®åºï¼æè å å«æ件ï¼ï¼å¹¶ä¸å°ç»æ以HTMLï¼æè XMLï¼
页é¢çå½¢å¼åéåæµè§å¨ãè¿æå©äºä½è ä¿æ¤èªå·±ç代ç ï¼èåä¿è¯ä»»ä½åºäºHTMLçWebæµè§
å¨çå®å ¨å¯ç¨æ§ã
2ï¼å¼ºè°å¯éç¨çç»ä»¶
ç»å¤§å¤æ°JSP页é¢ä¾èµäºå¯éç¨çï¼è·¨å¹³å°çç»ä»¶ï¼JavaBeansæè Enterprise JavaBea
nsTMç»ä»¶ï¼æ¥æ§è¡åºç¨ç¨åºæè¦æ±çæ´ä¸ºå¤æçå¤çãå¼å人åè½å¤å ±äº«å交æ¢æ§è¡æ®éæ
ä½çç»ä»¶ï¼æè 使å¾è¿äºç»ä»¶ä¸ºæ´å¤ç使ç¨è æè 客æ·å¢ä½æ使ç¨ãåºäºç»ä»¶çæ¹æ³å éäº
æ»ä½å¼åè¿ç¨ï¼å¹¶ä¸ä½¿å¾åç§ç»ç»å¨ä»ä»¬ç°æçæè½åä¼åç»æçå¼ååªåä¸å¾å°å¹³è¡¡ã
3ï¼éç¨æ è¯ç®å页é¢å¼å
Web页é¢å¼å人åä¸ä¼é½æ¯çæèæ¬è¯è¨çç¼ç¨äººåãJavaServer Pageææ¯å°è£ äºè®¸å¤
åè½ï¼è¿äºåè½æ¯å¨æç¨çãä¸JSPç¸å ³çXMLæ è¯ä¸è¿è¡å¨æå 容çææéè¦çãæ åçJS
Pæ è¯è½å¤è®¿é®åå®ä¾åJavaBeansç»ä»¶ï¼è®¾ç½®æè æ£ç´¢ç»ä»¶å±æ§ï¼ä¸è½½Appletï¼ä»¥åæ§è¡ç¨
å ¶ä»æ¹æ³æ´é¾äºç¼ç åèæ¶çåè½ã
éè¿å¼åå®å¶åæ è¯åºï¼JSPææ¯æ¯å¯ä»¥æ©å±çãä»åï¼ç¬¬ä¸æ¹å¼å人ååå ¶ä»äººåå¯ä»¥
为常ç¨åè½å建èªå·±çæ è¯åºãè¿ä½¿å¾Web页é¢å¼å人åè½å¤ä½¿ç¨çæçå·¥å ·åå¦åæ è¯ä¸æ ·
çæ§è¡ç¹å®åè½çæ件æ¥å·¥ä½ã
JSPææ¯å¾å®¹ææ´åå°å¤ç§åºç¨ä½ç³»ç»æä¸ï¼ä»¥å©ç¨ç°åçå·¥å ·åæå·§ï¼å¹¶ä¸æ©å±å°è½å¤
æ¯æä¼ä¸çº§çåå¸å¼åºç¨ãä½ä¸ºéç¨Javaææ¯å®¶æçä¸é¨åï¼ä»¥åJava 2ï¼ä¼ä¸çä½ç³»ç»æ
ï¼çä¸ä¸ªç»æé¨åï¼JSPææ¯è½å¤æ¯æé«åº¦å¤æçåºäºWebçåºç¨ã
ç±äºJSP页é¢çå ç½®èæ¬è¯è¨æ¯åºäºJavaç¼ç¨è¯è¨çï¼èä¸ææçJSP页é¢é½è¢«ç¼è¯æ为
Java Servletï¼JSP页é¢å°±å ·æJavaææ¯çææ好å¤ï¼å æ¬å¥å£®çåå¨ç®¡çåå®å ¨æ§ã
ä½ä¸ºJavaå¹³å°çä¸é¨åï¼JSPæ¥æJavaç¼ç¨è¯è¨âä¸æ¬¡ç¼åï¼åå¤è¿è¡âçç¹ç¹ãéçè¶
æ¥è¶å¤çä¾åºåå°JSPæ¯ææ·»å å°ä»ä»¬ç产åä¸ï¼æ¨å¯ä»¥ä½¿ç¨èªå·±æéæ©çæå¡å¨åå·¥å ·ï¼æ´
æ¹å·¥å ·ææå¡å¨å¹¶ä¸å½±åå½åçåºç¨ã
åºç¨èå´
ASPæ¯Microsoftå¼åçå¨æç½é¡µè¯è¨ï¼ä¹ç»§æ¿äºå¾®è½¯äº§åçä¸è´¯ä¼ ç»ââåªè½è¿è¡äºå¾®è½¯
çæå¡å¨äº§å,IIS (Internet Information Server) (windows NT)åPWS(Personal Web Se
rver)(windows )ä¸ãUnixä¸ä¹æChiliSoftçæ件æ¥æ¯æASPï¼ä½æ¯ASPæ¬èº«çåè½æéï¼
å¿ é¡»éè¿ASPï¼COMçç»åæ¥æ©å ï¼Unixä¸çCOMå®ç°èµ·æ¥é常å°é¾ã
PHP3å¯å¨Windows,Unix,LinuxçWebæå¡å¨ä¸æ£å¸¸è¿è¡,è¿æ¯æIIS,Apacheçéç¨Webæå¡å¨
,ç¨æ·æ´æ¢å¹³å°æ¶,æ éåæ¢PHP3代ç ,å¯å³æ¿å³ç¨.
JSPåPHP3类似ï¼å ä¹å¯ä»¥è¿è¡äºææå¹³å°ãå¦Win NT,Linux,Unix. NTä¸IISéè¿ä¸ä¸ªæ
件ï¼ä¾å¦JRUNæè ServletExecï¼å°±è½æ¯æJSPãèåçWebæå¡å¨Apacheå·²ç»è½å¤æ¯æJSPã
ç±äºApache广æ³åºç¨å¨NTãUnixåLinuxä¸ï¼å æ¤JSPææ´å¹¿æ³çè¿è¡å¹³å°ãè½ç¶ç°å¨NTæä½
ç³»ç»å äºå¾å¤§çå¸åºä»½é¢ï¼ä½æ¯å¨æå¡å¨æ¹é¢Unixçä¼å¿ä»ç¶å¾å¤§ï¼èæ°å´èµ·çLinuxæ´æ¯æ¥
å¿ä¸å°ãä»ä¸ä¸ªå¹³å°ç§»æ¤å°å¦å¤ä¸ä¸ªå¹³å°ï¼JSPåJavaBeançè³ä¸ç¨éæ°ç¼è¯ï¼å 为Javaåè
ç é½æ¯æ åçä¸å¹³å°æ å ³çã
æ§è½æ¯è¾
æ人åè¿è¯éªï¼å¯¹è¿ä¸ç§è¯è¨åå«å循ç¯æ§è½æµè¯åååOracleæ°æ®åºæµè¯ã
å¨å¾ªç¯æ§è½æµè¯ä¸ï¼JSPåªç¨äºä»¤äººåæçåç§éå°±ç»æäºï¼ç循ç¯ãèASP
ãPHPæµè¯çæ¯ï¼å¾ªç¯ï¼å°ä¸ä¸ªæ°é级ï¼ï¼å´åå«ç¨äºç§åç§ãï¼åèPHPLIBï¼
ã
æ°æ®åºæµè¯ä¸ï¼ä¸è åå«å¯¹ Oracle 8 è¿è¡ 次 Insert,Update,Select,åDelete
ï¼ Jsp éè¦ ç§ï¼Php éè¦ ç§ï¼ASPå éè¦ ç§ã
åæ¯åæ
ç®åå¨å½å PHPä¸ASPåºç¨æ为广æ³ãèJSPç±äºæ¯ä¸ç§è¾æ°çææ¯ï¼å½å éç¨çè¾å°ãä½å¨
å½å¤ï¼JSPå·²ç»æ¯æ¯è¾æµè¡çä¸ç§ææ¯ï¼å°¤å ¶æ¯çµååå¡ç±»çç½ç«ï¼å¤éç¨JSPã
éç¨PHPçç½ç«å¦æ°æµªç½ï¼sinaï¼ãä¸å½äººï¼Chinarenï¼ç,ä½ç±äºPHPæ¬èº«åå¨çä¸äºç¼º
ç¹ï¼ä½¿å¾å®ä¸éååºç¨äºå¤§åçµååå¡ç«ç¹ï¼èæ´éåä¸äºå°åçåä¸ç«ç¹ã
é¦å ï¼PHP缺ä¹è§æ¨¡æ¯æãå ¶æ¬¡ï¼ç¼ºä¹å¤å±ç»ææ¯æã对äºå¤§è´è·ç«ç¹ï¼è§£å³æ¹æ³åªæä¸
个ï¼åå¸è®¡ç®ãæ°æ®åºãåºç¨é»è¾å±ã表示é»è¾å±å½¼æ¤åå¼ï¼èä¸åå±ä¹å¯ä»¥æ ¹æ®æµéåå¼
ï¼ç»æäºç»´éµåãèPHPå缺ä¹è¿ç§æ¯æãè¿æä¸é¢æå°è¿çä¸ç¹ï¼PHPæä¾çæ°æ®åºæ¥å£æ¯
æä¸ç»ä¸ï¼è¿å°±ä½¿å¾å®ä¸éåè¿ç¨å¨çµååå¡ä¸ã
ASPåJSPå没æ以ä¸ç¼ºé·ï¼ASPå¯ä»¥éè¿Microsoft WindowsdçCOM/DCOMè·å¾ActiveXè§
模æ¯æï¼éè¿DCOMåTranscation Serverè·å¾ç»ææ¯æï¼JSPå¯ä»¥éè¿SUN JavaçJava Clas
såEJBè·å¾è§æ¨¡æ¯æï¼éè¿EJB/CORBA以åä¼å¤ååçApplication Serverè·å¾ç»ææ¯æã
ä¸è ä¸ï¼JSPåºè¯¥æ¯æªæ¥åå±çè¶å¿ãä¸çä¸ä¸äºå¤§ççµååå¡è§£å³æ¹æ¡æä¾åé½éç¨J
SP/Servletãæ¯è¾åºåçå¦IBMçEï¼businessï¼å®çæ ¸å¿æ¯éç¨JSP/ServletçWebSphereï¼
西æ¹å¦å¤ä¸ä¸ªé常èåççµååå¡è½¯ä»¶æä¾åï¼Intershopãå®åæ¥ç产åIntershop1 2, 3
, 4å æ®äºä¸»è¦ççµååå¡è½¯ä»¶ä»½é¢ãå®ä»¬é½æ¯éè¿CGIæ¥æä¾æ¯æ çãä½å»å¹´æåå®æ¨åº
äºEnfinityï¼ä¸ä¸ªéç¨JSP/Servletççµååå¡Application Serverï¼èä¸å£°è¨ä¸åå¼åä¼ ç»
软件ã
æ»ä¹
ASPï¼PHP,JSPä¸è é½æç¸å½æ°éçæ¯æè ï¼ç±æ¤ä¹å¯ä»¥çåºä¸è åææé¿ãæ£å¨å¦ä¹ æ
使ç¨å¨æ页é¢çæåå¯æ ¹æ®ä¸è çç¹ç¹éæ©ä¸ç§éåèªå·±çè¯è¨ã
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è¯è¨è¿å¯ä»¥æ宽é¾æ¥é¢ï¼ä¸åç§æ°æ®åºç¸è¿ï¼ç¼è§£æ°æ®åå¨ãæ£ç´¢åç»´æ¤ååã
2024-11-28 07:22
2024-11-28 07:20
2024-11-28 06:43
2024-11-28 05:58
2024-11-28 05:36
2024-11-28 05:17