Results 1 to 5 of 5

Thread: beginner web dev question

  1. #1
    Join Date
    May 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default beginner web dev question

    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
    Last edited by tech_support; 05-23-2007 at 06:36 AM. Reason: Formatting

  2. #2
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    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

  3. #3
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    a relative path is something like

    folder/page.htm


    an absolute path is


    www.host.com/folder/page.htm

  4. #4
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by boogyman View Post
    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
    Mike

  5. #5
    Join Date
    May 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Absolute Path and images

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •