Getting Server Side Directory Path in Sync? New Dreamweaver User
Hello,
I am brand new to Dreamweaver. For the past 10 years, I've been using WS_FTP LE to transfer files from my computer files to the web and hard-code raw HTML/PHP/MYSQL into Notepad.
Now I am using Dreamweaver to try creating a PHP site and I want to use "PHP Include" statements. For instance, I have a 100 page site with a sidebar and I want to add this statement to put the sidebar on every page and be able to update it instantly at one file location:
<?php include("/home/.amenhotep/hosting-user-name/mywebsite.com/sidebar.php"); ?>
This statement works correctly on the webserver but it does not work on Dreamweaver because of the filepath. I have to use the exact code above in order to get it to work on my hosting service (Dreamhost.com).
Can someone tell me the proper way to work with Include statements with PHP and get everything in Sync between my computer and the webhost?
Thanks
Regards