Section 1 Introduction

Source: Internet
Author: User
Introduction PHP is a server-side scripting language that is easy to learn and use. With little programming knowledge, you can use PHP to build a truly interactive WEB site. This tutorial does not want you to fully understand this language, but allows you to join the development of dynamic web sites as soon as possible. I suppose you have some basic HTML (or HTML editor) knowledge and some editing

Introduction

  PHPIt is a server-side scripting language that is easy to learn and use. You can use it with little programming knowledge.PHPCreate a real interactionWEBSite. This tutorial does not want you to fully understand this language, but allows you to join the development dynamics as soon as possible.WebThe ranks of the sites. I assume you have someHTML(OrHTMLEditor) basic knowledge and some programming ideas.

1.Introduction

  PHPIs one of the tools that allow you to generate dynamic web pages.PHPRepresentative: Hypertext Preprocessor (PHP: Hypertext Preprocessor).PHPIt is completely free, and you don't have to spend any money.PHPOfficial siteHttp://www.php.net)Free download.PHPComplianceGNUPublic License (GPL)Under this license, many popular software suchLinuxAndEmacs. You can obtain the source code without restrictions, or even add the features you need.PHPIn mostUnixPlatform,GUN/LinuxAnd MicrosoftWindowsIt can run on the platform. HowWindowsEnvironmentPCMachine orUnixInstall on machinePHPThe information can be found inPHPYou can also find the official site or view the"PHPInstall full attack and backup. The installation process is simple.

If your machine solves the problem2000Problem, thenPHPThe same is true!

1.1History

Three years ago,Rasmus LerdorfHe created his online resume"Personal homepage tools"(Personal Home Page Tools). This is a very simple language. More and more people have noticed this language and put forward various suggestions for its extension. With the selfless dedication of many people and the free source code nature of the language itself, it has evolved into a language with rich features and is still growing.PHPAlthough it is easy to learn, it is fasterMod_perl(ImplantWebServerPerlModule) is slow. Now you canMod_perlWhat's faster is calledZendNew engine, andPHP4You can make full use of this engine. Now,PHP4The official version has been released.PhpThe official site to download.AndyGutmansAndZeev SurakiYesZend. You can goZendSiteHttp://www.zend.com)Learn more.

  PHPPersonal ApplicationsWebSignificant growth in the project. AccordingNetcraftIn1999Year10Monthly reports, including931122Domains and321128ItemsIPAddress utilizationPHPTechnology.

1.2 PHPAdvanced

ApplicationPHPThere are many benefits. Of course, the disadvantage is thatPHPBecause it is an open source project, there is no commercial support, and the resulting execution speed is slow (PHP4Before ). HoweverPHPThe email list is useful unless you are runningYahoo!OrAmazon.comYou will not feel this very popular sitePHPThe speed is different from that of others. At least I don't feel it! Okay. let's take a look.PHPAdvantages:

-Learning process

I personally preferPHPIs a very simple learning process. AndJavaAndPerlDifferent,You don't have to bury your head in100A multi-page document can be written only after hard learning.ImageProgram. You only need to know some basic syntax and language features, and you can start yourPHPCoding trip. If you encounter any problems during the coding process, you can also read the relevant documents.

  PHPThe syntax is similarC,Perl,ASPOrJSP. For those who are familiar with one of the above languages,PHPIt's too simple. On the contrary, if youPHPIf you know more, you can easily learn other languages.

You only need30In minutesPHPYou may be familiar with all the features of the core language.HTMLYou even know how to use the editing design software or hand-made design.WEBSite. BecausePHPCode can be easily added to your site while designing and maintaining your site.PHPMake your site more dynamic.

-Database Connection

  PHPIt can be compiled into functions connected to many databases.PHPAndMySQLIs a perfect combination. You can also write peripheral functions to indirectly access the database. In this way, when you change the database you are using, you can easily change the encoding to adapt to this change.PHPLIBIt is the most commonly used base database that can provide general transactions.

-Scalability

As mentioned above,PHPIt has entered a period of rapid development. For a non-programmerPHPIt may be difficult to expand additional functions, but forPHPIt is not difficult for programmers.

-Object-oriented programming

  PHPProvides classes and objects. Based onWebObject-oriented programming is required.PHPSupport constructors and extraction classes.

-Scalability

In traditional web pagesCGI.CGIThe scalability of the program is not ideal, because it is for every runningCGIThe program runs an independent process. The solution is to writeCGIThe interpreter of the program language is compiled into yourWebServer(For exampleMod_perl, JSP).PHPIt can be installed in this way, although few people are willingCGIInstall it. EmbeddedPHPHigher scalability.

-More features

  PHPDevelopersWebProgramming, developed many peripheralPopular FoundationLibrary, which contains a more easy-to-use layer. You can usePHPConnection includesOracle,MS-Access,MysqlFor most databases. You can draw pictures on flies, write programs to download or displayEmail. You can even complete network-related functions. The best thing is that you can choose yourPHPWhat functions are required for the installed version. ReferenceNissanOfXterraThat isPHPYou can do everything you want and do everything you want.!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.