Home>Article>Backend Development> How to open and run php files
1. As shown in the picture, for example, if a new PHP file is created, how should I open the PHP file?
#2. The method is very simple, just right-click the mouse and use the notebook open method.
3. In this way, you can directly open the PHP file, and then start writing your own PHP code to test.
#4. Of course, you can also choose the sublime opening method. The premise is that your computer has sublime installed. If not, install one by yourself.
#5. But if you need to run PHP files, you need to install the xampp integration software and then start it, (start) means start.
#6. Then put the file in the htdocs folder in the installation directory. My installation directory is the myservice folder in the f drive.
#7. After that, open the browser window and enter localhost/ and the name of the PHP file to run it. It is very simple.
The above content is for reference only!
Recommended tutorial:PHP video tutorial
The above is the detailed content of How to open and run php files. For more information, please follow other related articles on the PHP Chinese website!