I have to come up to speed quickly on PHP since I have been given the
responsibilty of updating our website.
I have setup a local web server through IIS, downloaded and installed
PHP. I'm using Dreamweaver to edit my pages. When attempting to preview
pages the include file is being read and the page is properly displayed
in the browser with the exception of images.
I think I know what the problem is, but I'm not sure how to fix it. The
include file for the image source reads as follows:
<img src="/images/header-right.jpg"
This apparently is relative to the root of the remote website but when
previewed locally the server is looking for the image here:
http://localhost/images/header-right.jpg
I need it to look here:
http://localhost/localwebsitecopy/im...ader-right.jpg
What is the best approach for me to use to allow me to properly load
these images both locally (for preview) and on the remote website?
Any help would be appreciated and please remember that you are not
talking to a programmer (I'm sure this is obvious.)
Thanks!
Dave