Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - absolute path vs. relative path
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic Closedabsolute path vs. relative path

 Post Reply Post Reply
Author
JohnC View Drop Down
Newbie
Newbie
Avatar

Joined: 11 May 2003
Location: Canada
Status: Offline
Points: 8
Direct Link To This Post Topic: absolute path vs. relative path
    Posted: 02 November 2003 at 5:17pm

Could somebody please explain the pros and cons of using relative and absolute paths?

I know that for development I have to use the relative path because if I don't, the browser always wants to connect to the 'net.

I have seen sites with both type paths on them, but am wondering which is best.

 

Will I have to change all my relatives to absolutes before I post my site?

 

JohnC

 

Back to Top
KCWebMonkey View Drop Down
Senior Member
Senior Member
Avatar
Go Chiefs!

Joined: 21 June 2002
Status: Offline
Points: 1319
Direct Link To This Post Posted: 02 November 2003 at 6:51pm

no you won't have to change them as long as you keep the directory structure the same.

you can read more about relative and absolute paths here

Back to Top
1100 View Drop Down
Newbie
Newbie
Avatar

Joined: 07 October 2003
Location: United States
Status: Offline
Points: 1
Direct Link To This Post Posted: 03 November 2003 at 3:47am
I use the relative path almost always but sometimes it requires absolute path to be placed on the page. It depends upon you need. But as long as it possible I use relative paths
KCWebMonkey is right; you don't need to change the relative paths as long as the structure remains the same.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.