PDA

View Full Version : beginner web dev question



chipc
05-23-2007, 05:51 AM
1) Script Title: Image Thumbnail Viewer

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/thumbnail.htm

3) Describe problem:

I have a photography website currently online that I built using Frontpage. I am now completely rebuilding it with a new design, but using Dreamweaver. I'm storing this project locally until it is completely ready to upload to my host. I'm using Image Thumbnail Viewer for my galleries and my question is that since I'm having to code all the images with the local file path - when I upload to the server will it rewrite all the code with the new file path? or will I have to rewrite all the image code for the directory once it's uploaded?

Sorry if I'm not using the right terminology.

thanks!
chip

codeexploiter
05-23-2007, 07:28 AM
You can use relative file paths instead of absolute file path(s) in your web pages , which avoids updating the file paths when you upload your web page(s) into your server.

Hope this helps

boogyman
05-23-2007, 01:28 PM
a relative path is something like

folder/page.htm


an absolute path is


www.host.com/folder/page.htm

mwinter
05-23-2007, 04:03 PM
an absolute path is

www.host.com/folder/page.htm

Not quite; what you've posted is an invalid URI.

An absolute path begins with a slash:

  /path/to/resource

A network path includes the authority component:

  //www.example.com/path/to/resource

Both of these are termed relative references.

Inclusion of the scheme makes it an absolute URI:

  http://www.example.com/path/to/resource

chipc
05-23-2007, 07:10 PM
Okay, but when I use an absolute path:

.."/images/001.jpg" for example

the images do not show up when I preview in a browser.

So I guess it makes more sense to do all the coding for the images after I've uploaded everything..? good grief, I should have asked this weeks ago!

Sorry for the improper posting format! won't forget next time..

Chip