Forums

This topic is locked

Using BASE tag while creating pages

Posted 05 Dec 2001 00:11:58
1
has voted
05 Dec 2001 00:11:58 irfan baig posted:
I'm trying to develop a site with PHP, where the HTML is separated from the PHP code. Generally I'm doing well - with one problem:

A PHP file, for example, 'main.php', would include an HTML template (created in dreamweaver). Unfortunately, this file is not in the same directory as the HTML file. What this leads to, is having to change the URLs of images everytime I switch between dreamweaver editing, and PHP programming, so that the images don't appear broken.

If I put a BASE HREF on the page, things should work out. Unfortunately, the BASE HREF tag doesn't seem to help while editing in dreamweaver, since it is still looking for a file on my HD, instead of my server.

Is there any way that I can tell Dreamweaver to pull the file from the server instead of looking for a file on my HD?



Reply to this topic