Computing.Net > Forums > Web Development > link to files in a different folder

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

link to files in a different folder

Reply to Message Icon

Name: robber2
Date: October 26, 2006 at 14:33:33 Pacific
OS: w xp home
CPU/Ram: 2 gig celeron, 256 MB
Product: dell dim 2350
Comment:

okay, i'm dumb, i admit it!
say i have a folder what contains two others:
main folder contains folder home, folder bedroom.
now, in the bedroom folder is a page on which i want to display a file from the home folder, call this file "roof.jpg".
how do i call up the file from the page in the bedroom folder without putting the roof file in the bedroom folder?
(told you i'm dumb)
thx



Sponsored Link
Ads by Google

Response Number 1
Name: Michael J (by mjdamato)
Date: October 26, 2006 at 15:04:09 Pacific
Reply:

Just so we're clear you have the following structure:

[main]
--[home]
--[bedroom]

When specifying the path, you can move up a folder by using a double period ".."

So, in a page that exists within the [bedroom] folder you can link ot a file in the [main] folder like this "../file.htm" or you can link to a file in the [home] directory like this "../home/file.htm"

Michael J


0

Response Number 2
Name: robber2
Date: October 26, 2006 at 15:56:46 Pacific
Reply:

That's what I'm talking about! Nice to be getting good AND immediate help from the pros!
Muchas Garcias, hermano!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: link to files in a different folder

Link to files outside Apache on PC www.computing.net/answers/webdevel/link-to-files-outside-apache-on-pc/3383.html

How to point links to CGI-bin www.computing.net/answers/webdevel/how-to-point-links-to-cgibin/1303.html

Delete the file in the Temp folder www.computing.net/answers/webdevel/delete-the-file-in-the-temp-folder/4282.html