Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 04-22-2006, 08:01 PM Relative paths
Skilled Talker

Posts: 66
Trades: 0
Does anyone know why the relative path such as /administrative/stupid.htm is not the preferred way of doing things rather than the hard to remember, decipher, etc. method of ../../../adminstrative/stupid.htm.

Will one get in trouble with method number one as I surely find it easier to do and it works. Unfortunately, it seems like all books recommend the other method.

Thanks!
judyb is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-23-2006, 01:19 AM Re: Relative paths
ChipJohns's Avatar
I don't know! Do you?

Posts: 488
Name: Chip Johns
Location: Savannah Georgia
Trades: 0
HI judyb,

actually both examples that you give are both relative paths.

the later is when you have to work your way down the directory path.

For instance here are examples of what might be the absolute path to each example that you gave to show you the correlation.

here is what the relative paths represent..


The page with the link using a relative path
www.site.com/level1/level2/level3/page.htm
to get to this page
www.site.com/level1/level2/level3/level4/lpage.htm
using relative path would be
level4/lpage.htm
------------------------------------

to get to this page
www.site.com/level1/page.htm
using relative path would be
../../page.htm (this takes you back the two levels needed to find the page)
I hope this is what you were asking!?

I personally like absolute paths. Both have their pros and cons.
ChipJohns is offline
Reply With Quote
View Public Profile Visit ChipJohns's homepage!
 
Old 04-23-2006, 07:32 AM Re: Relative paths
Skilled Talker

Posts: 66
Trades: 0
Thanks, but I knew they were both relative paths. All my references say to use the ../../ type of path. I find the other kind easier and wondered why the ../../../ is preferred, and whether there will be any dire consequences in using it.

Why do you prefer absolute paths? It seems to me that somewhere I read they were slower.
judyb is offline
Reply With Quote
View Public Profile
 
Old 04-23-2006, 11:47 AM Re: Relative paths
Super Talker

Posts: 102
Trades: 0
I prefer relative paths because by using that it doesn't really matter where you're files are located, the files can always find each other. Instead of using an absolute path, were things to change you'd need to do a lot of fixing paths. There are probably a few handy tools out there for that kinda purpose but why go trough the trouble anyway ...
ghettobert is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Relative paths
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13435 seconds with 12 queries