Getting Started with PHP

Source: Internet
Author: User
Tags getting started with php
Z

PHP is all called: hypertext Preprocessor , Chinese name: "Hypertext Preprocessor" is a common open source scripting language, mainly for the Web application Development (commonly known as the site or do the backstage!), from 5.0 to support object-oriented, the following omitted several words ...

I. Editing software:

Phpstorm for mac 2 , a good PHP dev? tool.

Two. Operating Environment:

Transport Environment: XAMPP for mac 3 , integrated with MySql and PHP of the transport environment. After installation is complete, start ( sudo/applications/xampp/xamppfiles/bin/mysql.server start)

How to start writing code

1. start a new project with Phpstorm


2. Save the project in the specified directory


After the project is successful, it should be jiangzi.

4. Create a new PHP file in the project

5. Now we can write the code.

Add code to the new PHP file: echo "Hello" Php!";

6. Run the Code

Php The code needs to run the environment to execute, we install the Xampp is a Php The integrated environment for development and operation. Now we copy the project directory to Xampp Of Htdocs directory, this process professional is called SPANHIRAGINOSANSGB '; Font-size:10.000000pt ">" released " copy copy Where to go, depends on your server, and every time you modify the code, you must release Look at the results once more. The moment to witness the miracle comes, enter in your browser:

http://ip address (localhost)/project name/php file name. PHP (with folder add folder name)

Example: http://localhost/MyFirst/ H elloworld.php

Ps: If the browser does not change , please make sure you hit the address and then enter.

PS: If it is garbled , you can change the code or at the top of the PHP file type:

PS: If it is error 404, the path is wrong, please check the path you entered.

All right, we're on the side for the time being .



The above introduces the introduction of PHP, including aspects of the content, I hope that the PHP tutorial interested in a friend helpful.

  • 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.