What is PHP? Introduction to PHP

Source: Internet
Author: User
PHP ("PHP: HypertextPreprocessor", short for Hypertext Preprocessor) is a widely used open-source multi-purpose scripting language. it can be embedded in HTML and is especially suitable for WEB development.

PHP ("PHP: Hypertext Preprocessor", short for Hypertext Preprocessor) is a widely used open-source multi-purpose scripting language that can be embedded into HTML, especially suitable for WEB development.

The above is a simple answer, but what does this mean? See the following example:


Example 1-1. an introductory example



Example



Echo "Hi, I'm a PHP script! ";
?>


Note the difference between this example and other scripts written in C or Perl-what is different from writing a program with a large number of commands to output HTML, we have written an HTML script in PHP, which is embedded with some code to do some things (for example, some text is output in this example ). PHP code is included by special start and end characters, so that you can access "PHP mode ".

Unlike JavaScript on the client, PHP code runs on the server. If you have created code similar to the preceding example on your server, the client will receive the result after running the script, but they cannot know how the code behind it works. You can even set the WEB server to PHP to process all HTML files, so that users cannot know what the server has done.

One of the major advantages of using PHP is its simplicity for beginners. It also provides various advanced features for professional programmers. Do not be afraid when you see a long PHP feature list. You can get started quickly and write some simple scripts by yourself in just a few hours.


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.