The main content of this article is to introduce the use of Dreamweaver CS6 to write PHP programs and use DW to create a PHP site, the need for friends can refer to
1) Click the "Site"-"new Site" on the menu,
2) can see this dialog box, this time, we give the site a name, for example: Myphpsite, select a path in the local site folder, my is the local server Htdocs directory, my Settings
3) Select OK, click "Server", then click "Plus" small icon,
4) pop up a layer that looks very complex, here, the server name arbitrarily write, own named, connection method we choose local/network, because we are doing tests, PHP environment is installed locally, (if you have FTP, you can use FTP).
5) Other options keep the following settings:
I choose the server folder or the original directory, the Web URL we write http://127.0.0.1/, this weburl is to be in the DW directly F12 preview PHP page when used.
6) Then switch to advanced options, we select a server model, because we use PHP programming, this example we choose PHP MySQL, here are other options,
We want to choose according to our own web development language, if you use JSP, then please choose JSP. What language you choose. Select OK and click "Save", save, complete ok!.
7) Create PHP files under this site, or import PHP files, and when finished, press F12 to run in the browser.