Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 99687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T00:26:07+00:00 2026-05-11T00:26:07+00:00

[This question is somewhat related to this question , but the answers are not…]

  • 0

[This question is somewhat related to this question, but the answers are not…]

I have always used relative paths in HTML and scripting languages (PHP/ASP/JSP) to refer to EVERYTHING. I think the justification had to do with ‘what if the website gets hosted in some weird subdirectory.’ But my coworker has started throwing absolute paths into a PHP site we’re working on. At first I was appalled, but then I thought, ‘why not? We’ll never be hosted in a subdirectory.’ Nowadays, getting hosted in the root is not an uncommon necessity. Is it still necessary to ‘code’ (markup, really) with relative paths? I think it’s probably an antiquated practice by now.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T00:26:08+00:00Added an answer on May 11, 2026 at 12:26 am

    Edit: Killed my opening paragraph as it was based on a miss-interpretation of the referenced article.

    I always use an absolute path for the following reasons:

    Includes: 1. When you use a templating system, you never know the directory structure that a document is going to have when it’s calling the include. 2. If documents are going to be moved around, you can be pretty sure it’s going to be the documents themselves rather than the includes. If it is the includes, then they’re being moved my someone who knows what going on. Added to this, if it is someone not familiar with absolute/relative path, they’ll understand absolute a lot better than relative.

    css: (as well as the items above) 1. When editing with Web Developer, relative backgrounds disappear when your style sheet isn’t in the same directory as the doc. 2. By spec, when you put something on the ‘Net, it should be there for the duration. When I’m building something new, I build it in a new folder, or with a new file name and leave all the old docs alone.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 69k
  • Answers 69k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer A lttle trickery can emulate what you desire. Only the… May 11, 2026 at 12:40 pm
  • added an answer Thats a known bug. You can see the bug report… May 11, 2026 at 12:40 pm
  • added an answer Prefix or suffix is irrelevant, it's only about adding some… May 11, 2026 at 12:40 pm

Related Questions

[This question is somewhat related to this question , but the answers are not...]
Although somewhat related to this question , I have what I think is a
This is somewhat of a follow-up question to this question . Suppose I have
I know this is somewhat of a server question, but I wanted to ask
This is a somewhat bizarre question. My objectives are to understand the language design
This question is somewhat related to What’s the simplest way to make a HTTP
This is somewhat asp.net MVC related only for example purposes but I was hoping
Somewhat related to my question about integers instead of decimals; my vendor provides a

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.