Home >Backend Development >PHP Tutorial >How to run php files in dw?
DW is a web page code editor that integrates web page production and website management. The steps of running php files in dw are: first create a new site; then build a service; then create a new PHP file; and finally run the PHP file.
Adobe Dreamweaver, referred to as "DW", DW is a WYSIWYG web code editor that integrates web page production and website management. With support for HTML, CSS, JavaScript and more, designers and programmers can quickly create and build websites virtually anywhere.
How to run php files in dw?
dw Steps to run php files:
1. Create a new site:
(1) Click on site - manage site
(2) Create a new site (note the site folder, the file path is the www directory under the appserv installation directory), the site name can be customized
2. Build service
(1) Click on the server in sequence - " "
(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 the folder created by the site in the www directory (how to create a folder in the site: ① It can be created manually in the local directory; ②: "Save" before creating the service, and then right-click on the site in the lower right corner of the Dreamweaver tool 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), 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!