Because the document root is equivalent to you need to type the Advanced button at the top of the dialog box in the Web URL text field. For Web URL, type the URL that you want to use to reach the Php_test folder (in the document root of the server). Set the server folder to the folder specified as the local site folder In this case, php_test (in the document root of the server). In the dialog box that opens, make sure that the basic button is selected, and then select Local/network from the Connect using list.
Click the plus (+) button in the lower left corner of the dialog box to add a new server. Select Server from the column on the left side of the Site Settings dialog box.
However, do not close the Site Settings dialog box because you are testing the site right away. You do not need to define a remote or test server unless you want to use them. This is everything you need to define your site in Dreamweaver. The folder or file name of a Web site cannot use spaces or special characters because they cause problems on most PHP servers. Note: The folder name should not contain any spaces or special characters. (The location of the local site folder depends on how PHP is installed.) ) Verify the settings in the Site Settings dialog box (see Figure 12), and then click Save. Click Open, and then select (On your Mac, select). Create a subfolder of the document root named Php_test and select it. Click the folder icon next to the Local site folder text box to browse to the document root of the test server. This name is used to identify this item in Dreamweaver. In the Site Name text box, type the name of the site, such as PHP Test site. The URL for the document root is In Dreamweaver, choose Site > New site.
The project files are typically stored in a folder in the document root of the test server, which you will also do in this tutorial.īy the way, developing PHP sites requires installing xamp,iis,wampserver including Apache server, MySQL, and phpMyAdmin installation, installation specific process (omitted here)įinally, install the file in a file directory, C drive, or D drive. However, this generates two identical copies for each file. In theory, you can find PHP files anywhere on your computer, and Dreamweaver copies them to the test server when you use Live View or preview in browser. The following instructions assume that you have set up a local test environment on your computer as described in the section above. You also need to tell Dreamweaver the correct URL to use when testing the file. See Database users on the Grid How do I create a database? for further assistance with these fields.Ĭlick the Test button in the dialog box to make sure that the information you've entered works correctly.Because the PHP file needs to be handled by the WEB server, you need to inform Dreamweaver of the location of the test server. Username: Your database username, which should be of the form db00000_user as configured in Plesk.By default, this is "localhost," which will work on the DV server as-is. Your database server host name is, where 00000 is your site number. MySQL Server: The database server host name.In the MySQL Connection dialog box, fill in the following information:.Alternatively, from the Window menu, select Databases. Click the "Databases" tab of the Application panel, and then the + button. Now, it's time to set up a database connection.This file MUST be PHP, or you will not be able to access the database. Change the new file's name from untitled.php to something that makes sense to you.Create a new PHP file in the site by selecting "Site" in the Site tab of the Files panel.The Server Model should be set to "PHP MySQL," and the Access menu should be set to "FTP." See the link to the FTP article above for more information on FTP in Dreamweaver.
Requirementsīefore you start, you must already have a database, username, and password set up on your server. For information on Dreamweaver, please see: /products/dreamweaver.html. This Dreamweaver tutorial is provided as a courtesy. (mt) Media Temple does not support third-party software.