PHP The code needs a running environment to execute. The XAMPP we installed is an integrated environment for PHP development and operation.
Now we copy the project directory to XAMPP
In the htdocs directory of , professionals call this process "publish"(actually it is copy, as for where to copy, it depends on which server you have ), every time you modify the code, be sure to publish and check the results again.
The next moment to witness the miracle has arrived, enter in your browser:
http://ip address (localhost)/project name/PHP file name.php (if there is a folder, add the folder Name)
For example: http://localhost/MyFirst/Helloworld.php
PS: If the browser has not changed, please make sure you typed the address and hit Enter. PS:If it is garbled code, you can change the encoding or type:
PS:If it is an error
404, The path is wrong, please check the path you entered.
Okay, that’s it for now.
The above has introduced the introduction to PHP, including various aspects. I hope it will be helpful to friends who are interested in PHP tutorials.