Home > Article > Backend Development > How to run php program in dw?
Recommended manual : php complete self-study manual
1. Create a new site:
(1) Click site - manage site
(2) Create a new site (note the site folder, the file path is www under the appserv installation directory Directory), the site name can be customized
Recommended related articles:
1.The 10 best PHP in 2019 Recommended development tools
2.Methods to build PHP running environment
3.Configuration of PHP running environment under windows
Related video recommendations:
1. Dugu Jiujian(4)_PHP video tutorial
2. Building services
(1) Click on the server in turn - " "
## (2) Configure the service, the name can be customized, the connection method is local/network (if there are other services, you can modify it yourself), The server folder is a folder in the www directory created by the site (how to create a folder in the site: ① You can create it manually on the local directory; ②: "Save" before creating the service, and then click the site in the lower right corner of the Dreamweaver tool Right-click to create a new folder), the Web URL is the prefix URL accessed from the browser (can be customized); open "Advanced" and change it to the second picture. (3) Save.3. Create a new PHP file
Right-click on the folder created by the site - create a new file (change the suffix name).4. Run the PHP file
(1), right-click on the PHP file - Preview in the browser (2), in Enter the corresponding URL in the browser to accessThe above is the detailed content of How to run php program in dw?. For more information, please follow other related articles on the PHP Chinese website!