PHP integration suite server xampp installation and use tutorial (suitable for novices who are playing PHP for the first time), xampp installation and use_PHP tutorial

WBOY
Release: 2016-07-13 09:51:55
Original
1153 people have browsed it

php integration kit server xampp installation and use tutorial (suitable for novices who are playing PHP for the first time), xampp installation and use

Environment setup

Software:

xampp Download address: https://www.apachefriends.org/zh_cn/index.html (It is recommended to use Thunder to download, otherwise the speed may be unbearable)

1. Installation

After installation, open it and see the following:

2. Start the service

Start apache Mysql service

3. Access address

Enter in the browser: http://127.0.0.1/xampp/splash.php

See the following interface: It means that the PHP environment has been set up

Write helloworld:

Go to your installation path: (I installed it on the D drive)

Open the folder and see

The php language is placed in the htdocs directory by default:

Go to the htdocs folder and create a new file helloworld.php

Open the helloworld.php file and enter the following code:
Copy code The code is as follows:
echo "helloworld,"; //Output string helloworld
echo "this is my firstphp script."; //Same as above
echo phpinfo(); //phpinfo() is a system function that outputs php environment information
?>

Open the address bar and enter: 127.0.0.1/helloworld.php

See the following screen:

This is your first helloworld.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1011247.htmlTechArticlephp integration suite server xampp installation and use tutorial (suitable for novices who play PHP for the first time), xampp installation and use environment construction Software: xampp Download address: https://www.apachefriends.org/zh_cn/...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template