Home > Article > Development Tools > How to run php files in dw
#dwHow to run php files?
1. Create a new site:
(1) Click Site - Manage Site
(2) Create a new site ( Pay attention to the site folder, the file path is the www directory under the appserv installation directory), the site name can be customized
2. Build the service
(1) in sequence Click on the server - " "
(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), server The folder is a folder created by the site in the www directory (how to create a folder in the site: ① You can manually create it on the local directory; ②: "Save" before creating the service, and then click on 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 access
The above is the detailed content of How to run php files in dw. For more information, please follow other related articles on the PHP Chinese website!