Home > Article > Backend Development > Use Dreamweaver CS6 to write PHP programs and use DW to create PHP sites
The main content of this article is to introduce the use of Dreamweaver CS6 to write PHP programs and use DW to create PHP sites. Friends in need can refer to it
1) Click this "Site" on the menu-" New site", as shown in the figure:
2) You can see this dialog box. At this time, we give the site a name, for example: MyPHPSite, in the local site folder Select a path, mine is the htdocs directory under the local server, my settings are as shown below:
3) After selecting, click "Server", and then click " Plus sign" small icon, as shown in the picture:
4) A very complicated-looking layer pops up. Here, write the server name arbitrarily, name it yourself, and choose the connection method. Local/Network, since we are doing testing, the PHP environment is installed locally, (if you have FTP, you can use FTP). As shown in the picture:
#5) Other options remain as follows:
The server folder I selected is still the original one For that directory, we write http://127.0.0.1/ as the Web URL. This weburl is used when previewing the php web page directly with F12 in DW.
6) Then switch to the advanced options, we select a server model, since we use PHP programming, in this case we select PHP MySQL, there are other options here, as shown in the figure:
We have to choose according to our own WEB development language. If you use JSP, then please choose JSP. Choose whatever language it is. After selecting, click "Save" to save and complete OK! .
7) Create a php file under the site, or import a php file. After completion, press F12 to run it in the browser.
The above is the detailed content of Use Dreamweaver CS6 to write PHP programs and use DW to create PHP sites. For more information, please follow other related articles on the PHP Chinese website!