PHP Quick Start

Source: Internet
Author: User
Tags php development environment

Main content:

    1. Build PHP development environment
    2. First HelloWorld Program

PHP (hypertext Preprocessor) PHP hypertext preprocessor, is a scripting language embedded in HTML, running on the server.

Build PHP development environment

PHP development environment is mainly 3 parts: Server Apache, programming language PHP, database MySQL. Build the development environment, directly using the XAMPP integrated installation can be.

Xampp=apache+mysql+php+perl,x represents a cross-platform.

Download and install the website: https://www.apachefriends.org/zh_cn/index.html

(Installation is too simple, there is nothing to say, but if previously installed Tomcat,apache,mysql, etc., xampp part of the function can not be used, the solution online a lot, no longer talk about)

First HelloWorld Program

PHP can be edited using note++.

helloworld.php

<?phpecho "Hello world!";? >

Then run the XAMPP Control Panel, click Apache Start, Green is normal operation.

Then put the helloworld.php file in the path: C:\xampp\htdocs

Browser input: http://localhost/helloworld.php

OK, our first PHP program is complete.

PHP Quick Start

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.