Chapter One: First Knowledge of PHP

Source: Internet
Author: User
Tags php script

Introduction to how Web programs work ?

How does it work?

the browser first The Web server makes a request,theWeb server responds to the request, sends the response data to the client browser, usually an HTML file, and then the browser HTML The file information is displayed on the screen.

HTTP protocol?

PHP :

(Foreign name:P Hp:hypertext Preprocessor, Chinese name:"HypertextPreprocessor”) is a commonOpen Sourcescripting language. Grammarabsorbed theClanguage,Javaand thePerlfeatures that are conducive to learning, useBroad, mainly applicable toWebdevelopment areas. PhpUnique,GrammarMixed UpC,Java,Perlas wellPhpself-created grammar. It can be better thanCgiorPerlperform more quicklyDynamic Web pages. WithPhpmade theDynamic Pageswith the otherProgramming Languagescompared toPhpis toprogramembedded inHtml(Standard Universal Markup LanguageThe next application) in the document to execute, the execution efficiency than the fully generatedHtmlof the tagCgito be much higher;PhpYou can also performcompilingafter the code, the compilation can be achievedEncryptand theOptimizedThe code runs so that the code runs faster.

features

features of PHP include:

1. PHP 's unique syntax mixes C,Java,Perl , and php Self-innovative grammar.

2. PHP can be faster than CGI or Perl to execute dynamic pages - dynamic page aspects, Compared with other programming languages,

PHP is to embed the program into the HTML document to execute, the execution efficiency than the full HTML markup generated CGI is much higher;

PHP has a very powerful function, all CGI features php can be implemented.

3. PHP supports almost all popular databases as well as the operating system .

4. The most important thing is that PHP can be used in C,C + + program extension!

Advantages

Open Source Code

all the PHP Source code is actually available.

PHP free Sex

compared with other technologies, PHP itself is free and open source code.

PHP Quick Sex

The program develops fast, runs fast, and the technology itself learns fast. Embedded in HTML: Because PHP can be embedded in the HTML language, it is relative to other languages. Easy to edit, practical and more suitable for beginners.

PHP is highly cross-platform

because PHP is a server-side script that can run on UNIX,LINUX,WINDOWS,Mac OS , Android and other platforms

High Efficiency PHP

PHP consumes a fairly small amount of system resources .

PHP Image Processing

with PHP dynamically creates images , and PHP image processing uses GD2 by default . It can also be configured to use image Magick to process images.

PHP Object-oriented

in php4,php5 , the object-oriented aspect has been greatly improved, andphp can be used to develop large commercial programs.

PHP Professional Focus

PHP supports scripting languages and is the same class C language.

What is PHP?

PHP(full name : HypertextPreprocessor, or "PHP: Hypertext preprocessor ") is a common open source scripting language.

the PHP script executes on the server.

PHP is free to download and use.

What is a PHP file?

PHP files can contain text,HTML,JavaScript Code, and php code

PHP code executes on the server and results are returned to the browser in plain HTML

The default file name extension for php files is ". php"

What can PHP do?

PHP can generate dynamic page content

PHP can create, open, read, write, and close files on the server

PHP can collect form data

PHP can send and receive cookies

PHP can add, delete, and modify data in your database

PHP can restrict users from accessing some pages on your site

PHP can encrypt data

with PHP, you are no longer limited to outputting HTML. You can export images,PDF files, or even Flash movies. You can also export arbitrary text, such as XHTML and XML.

Why use PHP?

PHP can be run on different platforms (Windows,Linux,Unix,Mac OS X , etc.)

PHP is compatible with almost all servers currently in use (Apache,IIS , etc.)

PHP provides a wide range of database support

PHP is free and can be downloaded from the official PHP resources: www.php.net

PHP is easy to learn and runs efficiently on the server side

Chapter One: First Knowledge of PHP

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.