1. Download and installation of PHP environment construction and tool (dreamweaver)
1, download
1), PHP environment construction (environment integration tool): Search "appserv" on Baidu, and then download directly
2), dreamweaver cs5 development tool:
Download address: http://pan.baidu.com /s/1i54jHc
2. Installation
1), appserv installation: Pay attention to setting the server port and database password. The next step is fine. The installed directory is as follows:
2), dreamweaver installation: directly open the quick installation under Adobe Dreamweaver CS5, and then install it.
2. Run the php file on Dreamweaver
1. Create a new site:
1), click on the 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 the 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 in the www directory created by the site, and the Web URL is from browsing The prefix URL for server access (can be customized); open "Advanced" and change it to the second picture. How to create a folder in the site: ①, You can create it manually on the local directory; ②, "Save" before creating the service, and then use Dreamweaver Right-click on the site in the lower right corner of the tool to create a new folder 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 accessThe above is the detailed content of How to open php project in dw. For more information, please follow other related articles on the PHP Chinese website!