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.