SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: Path Problem

  1. #1
    SitePoint Member
    Join Date
    Apr 2005
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Path Problem

    I want to have multiple folders for my site

    Let's say:

    root
    -- layout
    --- images
    -- guestbook
    --- sign

    In my layout dir will be:
    header.inc
    left.inc
    right.inc
    style.css
    I also have <img src="images/...." /> tags in these files

    How can I include this files in my script if the file is in guestbook directory / sign directory?

  2. #2
    SitePoint Zealot
    Join Date
    Jun 2006
    Posts
    133
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can use the <base> tag to change the path to images in your HTML.

  3. #3
    SitePoint Member
    Join Date
    Apr 2005
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    any other way?

  4. #4
    SitePoint Wizard silver trophy
    Join Date
    Mar 2006
    Posts
    6,132
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    is this a filesystem path question, or a url path question?

  5. #5
    SitePoint Wizard siteguru's Avatar
    Join Date
    Oct 2002
    Location
    Scotland
    Posts
    3,629
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I am guessing it is a relative path filesystem question.
    Ian Anderson
    www.siteguru.co.uk


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
  •