My PHP Codes Do Not Work on Dreamweaver.

Dreamweaver is a quite popular web development and assistance tool provided by Adobe enterprise.

HTML is the most basic language for web development. HTML is client side scripting language and is executed by the browser itself.

PHP is one of the most popular server side scripted languages available in the world of web development because of its functions and syntax being similar to C and C++. In order to run server-side scripting languages like PHP on your computer locally, you will have to install a server that can operate locally as the local host for these scripting languages. There are many popular servers available on the Internet for this purpose like WAMP, XAMP and Apache server.

You can also use these servers on your Dreamweaver by defining a test site and active server in the Dreamweaver’s configurations. The ability to check and troubleshoot all your codes locally will help you in removing the inevitable syntax errors and warnings in your PHP codes.

If the PHP codes that you have written inside HTML tags are not responding in the desired manner, or the Dreamweaver program refuses to execute them, and asks you to define a test server first to run these codes, all you got to do is follow the below set of procedures to initialize your test server and test site, and execute your PHP codes efficiently:

    ■Initialize your Dreamweaver program from the Start menu, using any account.

    ■On the interface that appears, select File from the menu bar situated above the ribbon.

    ■From the drop-down list that appears, click on Open.

    ■On the Open window that appears, locate and open the target webpage document.

    ■Back on the interface, select Site from the menu bar.

    ■From the drop-down list that opens up, click on Manage sites.

    ■On the Manage Sites box that appears, click on New Sites button situated near the bottom part of the box.

    gugP7Ez.jpg


    ■On the Site Setup box that appears, provide a name to the site after the Site Name section and the path to the local site folder after the Local Site Folder section (WAMP in this demonstration).

    nCD7zjz.jpg


    ■On the box, select Servers category from the left pane, click on the small + (plus) symbol below the blank box, to add server details.

    USAlmBG.jpg


    ■On the box that appears, click on the arrow pointing downwards after the Connect using section.

    ■From the drop-down list that appears, select Local/Network.

    0tBKkcl.jpg


    ■On the same box, provide the appropriate Server Folder and Web URL details. (WAMP in this demonstration).

    ■On the same window, click on the Advanced tab situated on top.

    ■Under the Testing Server section, click on the arrow pointing downwards.

    ■Select PHP MySQL from the drop-down list after Server Model.

    6sZfjlh.jpg


    ■Click on Save to save the changes.

    ■On the Sites Set up window, check the checkbox under the Testing section.

    dXMkfk9.jpg


    ■Hit Save to complete the action.

By following the above described procedure you can also run PHP on your Dreamweaver 7.0. Similarly, you can also configure different server side scripting languages.
 
Status
Not open for further replies.
Status
Not open for further replies.