Build a PHP development environment in win10 system.
Install XAMPP
XAMPP (Apache+MySQL+PHP+PERL) is a powerful integrated website software package. Can be installed and used on windows, Linux, and Mac systems
Windows system installation
Download link: https://www.apachefriends.org/index.html
After installation, if there is no shortcut on the desktop, find it in the installation directory
This control interface will appear after opening, click start to start the corresponding service.
We can run Apache. Then find the htdocs folder in the xampp installation directory. After entering, you can delete the original files. Put in your own php code.
<?php
echo 'hello world';
Open the browser to visitlocalhost
Installation and use of phpstorm
Download link: https://www.jetbrains.com/zh-cn/phpstorm/promo/
There is a 30-day period of prostitution. Of course, the student party can apply for free, depending on Baidu. Or in other ways, everyone can figure it out.
After selecting the installation path, go to next and wait for the installation to complete.
After installation, run phpstorm. If it is the first use, you will be prompted whether to import the configuration file, just click Cancel.
Then we need to set up the PHP environment. Make sure you have installed xampp or php before this.
configure->settings
Click the place pointed by the arrow on the right to add php.
Click the + sign. If you are installing xampp, find the php folder in the xampp directory, and then select it php.exe
. If you install php directly, find php.exe
the location. Confirm afterwards.
After configuration, click new project to create a new project, select PHP Empty Project
Right-click the folder and choose to create a new php file.
If there is no option to run in the upper right corner, click Add configuration.
Click apply->ok
Click the triangle to run
Enter in the browser localhost
to access. If the port you set is not 80, you must add the corresponding port.
If it helps you, please like and follow to arrange a wave!!!