• PHP是一种递归的缩写为 “PHP:Hypertext Preprocessor”。 

  • PHP是嵌入在HTML中的服务器端脚本语言。它用于管理动态内容,数据库,会话跟踪,甚至构建整个电子商务网站。

  • 它集成了许多流行的数据库,包括 MySQL, PostgreSQL, Oracle, Sybase, Informix 和 Microsoft SQL Server.

  • PHP其执行效率是非常不错,尤其是当作为Unix一个Apache模块编译。 MySQL服务器一旦启动,即使执行巨大的结果集在非常耗时的复杂查询。

  • PHP支持大量的诸如POP3,IMAP和LDAP主要协议。 PHP4增加了对Java的支持和分布式对象体系结构(COM和CORBA),使得n层开发的在第一次成为可能性。

  • PHP是宽松的:PHP语言试图尽可能容错越好。

  • PHP的语法是类似于C语言。

PHP的常见用法:

  • PHP执行系统的功能,即从文件系统可以创建,打开,读取,写入,并关闭它们。

  • PHP可以处理的表单,即从文件中收集数据,数据保存到文件中,通过电子邮件可以发送数据,数据返回给用户。

  • 可以添加,删除,修改通过PHP的数据库内的函数。

  • 访问cookie变量和设置Cookie。

  • 使用PHP,可以限制用户访问网站的某些页面。

  • 它可以加密数据。

PHP的特性

五个重要特性使PHP流行的可能:

  • 简单

  • 高效率

  • 安全

  • 灵活性

  • 熟悉度

PHP中的"Hello World"脚本:

为了感受一下PHP,先从简单的PHP脚本开始。由于"Hello, World!"是一个重要的例子,首先我们将创建"Hello, World!"脚本。

正如前面提到的,PHP是嵌入在HTML中的。这意味着,其中正常的HTML(或XHTML),就会有这样的PHP语句:

      Hello World              

这将产生以下结果:

  Hello, World!  

如果检查上面的例子中的HTML输出,就会注意到PHP代码并没有出现在从服务器发送到Web浏览器的文件中。所有出现在Web页面中的PHP都会被处理并从页面中剥离;而从Web服务器返回给客户端是纯HTML输出。

所有的PHP代码都必须包含三个特殊的标记标签之一(以下所示)以被PHP解析器解释。

            

在下一章中,我们将开始机器上配置PHP开发环境,然后运行PHP例子和程序,以及演示PHP的相关概念。

579阅读 | 0评论
你的回应
  • etumivamoq

    2019-03-18 12:54:41 etumivamoq

    Heavy mli.mhmp.osbaike.net.stk.vl blows set [URL=http://websolutionsdone.com/propecia/]propecia[/URL] online propecia http://websolutionsdone.com/propecia/#buy-propecia-online buy propecia online propecia [URL=http://websolutionsdone.com/viagra/]viagra for sale[/URL] viagra uk http://websolutionsdone.com/viagra/#viagra-online viagra [URL=http://openastorenow.com/personal-loan/]personal loans austin tx[/URL] personal loan interest rates in usa http://openastorenow.com/personal-loan/#personal-loan personal loan [URL=http://refrigeratordealers.com/amoxicillin/]500 mg amoxicillin[/URL] amoxil http://refrigeratordealers.com/amoxicillin/#www.amoxicillin500mg.org amoxicillin online [URL=http://refrigeratordealers.com/prednisone/]prednisone[/URL] buy prednisone online http://refrigeratordealers.com/prednisone/#buy-prednisone-online prednisone order [URL=http://anger-management-action.com/payday-loans-irving-tx/]direct online lenders[/URL] payday loans http://anger-management-action.com/payday-loans-irving-tx/#loan-to-pay-off-payday-loans payday loans [URL=http://umichicago.com/short-cash-loans/]cash loans columbus ohio[/URL] cash loans http://umichicago.com/short-cash-loans/#short-cash-loans short cash loans [URL=http://palawan-resorts.com/canadian-pharmacy-online/]canada pharmacy online no script[/URL] pharmacy http:

  • aqimedigiton

    2019-02-25 16:25:39 aqimedigiton

    She zyi.gwmw.osbaike.net.ham.nf stomach; [URL=http://davincipictures.com/retin-a/]buy retin a online[/URL] tretinoin cream 0.1 http://davincipictures.com/retin-a/#where-to-buy-tretinoin-gel retin a cream [URL=http://davincipictures.com/prednisone/]buy prednisone[/URL] buy prednisone without prescription http://davincipictures.com/prednisone/#buy-prednisone prednisone without dr prescription usa [URL=http://davincipictures.com/doxycycline/]doxycycline[/URL]

  • eqotvazexk

    2019-02-19 22:22:25 eqotvazexk

    The wor.jgbv.osbaike.net.myi.os describe pulsatile; dehydrated [URL=http://michiganvacantproperty.org/buy-propecia/]propecia pills[/URL] online propecia http://michiganvacantproperty.org/buy-propecia/#propecia-online-pharmacy propecia pills [URL=http://scoverage.org/celebrex-200-mg/]celebrex[/URL] celebrex 200 mg http://scoverage.org/celebrex-200-mg/#celebrex celebrex generic [URL=http://biblebaptistny.org/nolvadex/]nolvadex in uk[/URL]

  • sedpakewenoba

    2019-02-14 09:42:42 sedpakewenoba

    Later, cle.ycpb.osbaike.net.tfa.hu pre-operatively plus training [URL=http://secretsofthearchmages.net/ventolin/]ventolin[/URL] buy ventolin http://secretsofthearchmages.net/ventolin/ ventolin [URL=http://otrmatters.com/levitra-20mg/]wife levitra[/URL] levitra 20mg http://otrmatters.com/levitra-20mg/ pharmacy prices for levitra [URL=http://kelipaan.com/flagyl/]metronidazole 500 mg antibiotic[/URL] flagyl http://kelipaan.com/flagyl/ buy metronidazole online [URL=http://gocyclingcolombia.com/generic-levitra-vardenafil-20mg/]levitra 20mg[/URL] generic levitra vardenafil 20mg http://gocyclingcolombia.com/generic-levitra-vardenafil-20mg/ levitraonline [URL=http://playinguphockey.com/generic-levitra/]levitra 20 mg[/URL] generic levitra http://playinguphockey.com/generic-levitra/ levitra 20mg vardenafil 20mg [URL=http://webodtechnologies.com/cialis-online/]cialis online[/URL] tadalafil 20mg lowest price http://webodtechnologies.com/cialis-online/ cialis [URL=http://gocyclingcolombia.com/levitra-20-mg/]levitra[/URL] levitra http://gocyclingcolombia.com/levitra-20-mg/ levitra 20 mg [URL=http://webodtechnologies.com/generic-levitra-20mg/]best price levitra 20 mg[/URL] levitra http://webodtechnologies.com/generic-levitra-20mg/ best price levitra 20 mg [URL=http://a1sewcraft.com/walmart-

  • opapijaxigut

    2019-02-13 16:19:45 opapijaxigut

    Background div.dpvo.osbaike.net.hul.ok compensates goes [URL=http://iranascience.com/viagra-generic/]viagra generic[/URL] generic viagra 50mg http://iranascience.com/viagra-generic/ buy viagra online [URL=http://playinguphockey.com/zoloft/]zoloft no prescription[/URL] zoloft no prescription http://playinguphockey.com/zoloft/ zoloft medicine [URL=http://cveto4ki.com/inderal/]inderal[/URL] buy inderal online http://cveto

  • ecebuce

    2019-02-10 18:17:58 ecebuce

    The jmd.skpb.osbaike.net.kob.nm shown aspergillosis [URL=http://gocyclingcolombia.com/cipro/]cipro[/URL] cipro http://gocyclingcolombia.com/cipro/ buy ciprofloxacin 500 mg [URL=http://healinghorsessanctuary.com/levitra/]generic levitra online[/URL] levitra generic 20 mg http://healinghorsessanctuary.com/levitra/ levitra generic lowest prices [URL=http://webodtechnologies.com/retin-a-cream/]retin a cream[/URL] renova cheap http://webodtechnologies.com/retin-a-cream/ retin a online [URL=http://webodtechnologies.com/buy-viagra/]viagra canada[/URL] viagra online canada http://webodtechnologies.com/buy-viagra/ low price viagra 100mg [URL=http://fitnesscabbage.com/generica-cialis/]cialis black[/URL] generica cialis http://fitnesscabbage.com/generica-cialis/ generica cialis [URL=http://dockpartsusa.com/zoloft-online/]buy zoloft[/URL] buy sertraline http://dockpartsusa.com/zoloft-online/ zoloft [URL=http://techiehubs.com/viagra-generic/]buy generic viagra[/URL] viagra generic http://techiehubs.com/viagra-generic/ viagra [URL=http://a1sewcraft.com/furosemide-without-prescription/]diuretic and lasix[/URL] lasix overdose http://a1sewcraft.com/furosemide-without-prescription/ furosemide cat [URL=http://nothingbuthoops.net/viagra/]viagra[/URL]

  • igiwlupu

    2019-02-10 16:22:25 igiwlupu

    Venous, hoa.ystq.osbaike.net.zgm.tt screened poisonous salpingo-oophorectomy [URL=http://desktopindia.com/pharmacy/]pharmacy[/URL] cialis canadian pharmacy http://desktopindia.com/pharmacy/ cialis from canadian pharmacy [URL=http://gocyclingcolombia.com/levitra-20-mg/]levitra[/URL] levitra 20 mg http://gocyclingcolombia.com/levitra-20-mg/ www.levitra [URL=http://ahecanada.com/levitra/]levitra online[/URL] levitra http://ahecanada

  • eosinozsozu

    2019-02-06 00:56:52 eosinozsozu

    Without xgt.mbyg.osbaike.net.vgv.hm anaemic displays twentieth these digoxin, pregnancy and accutane levitra levitra 20 mg prices levitra generic tadalafil 20mg buy tamoxifen online cheapest pharmacy to buy accutane

  • owisiwaqeca

    2019-02-04 22:16:11 owisiwaqeca

    Both sta.gipu.osbaike.net.qwa.ts diastasis lab, depicts strangury; displaced, canadian pharmacy viagra no prescription accutane viagra generic priligy priligy dapoxetine can accutane cause chin hari buy furosemide online

  • ejoifacakoval

    2019-01-19 16:32:58 ejoifacakoval

    Scans tba.typh.osbaike.net.mqy.nt palpation importance, hypercoagulable how fast does cialis work cheap viagra pills viagra priligy online dapoxetine 60mg levitra for sale buying levitra viagra viagra online purch

1 2
联系我们