Sign in with
Sign up | Sign in
Closed

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:

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

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

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

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

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

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

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



  8. 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).



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



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

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



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

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

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

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



  16. Click on Save to save the changes.

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



  18. 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.
    Can't find your answer ? Ask !