SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Feb 2003
    Location
    eez
    Posts
    331
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    include path isseu (relative or absolute paths?)

    Hi!

    I'm constructing a big script but i don't know if i should use relative or absolute paths !!!

    Relative paths:
    require_once("./includes/cfg.php");

    or require_once("../includes/cfg.php");

    Absolute paths:
    require_once(ABS_PATH."includes/initialize/arrange.php");
    require_once(ABS_PATH."includes/functions/specific/detailed.php");

    Are Relative paths are portable to all systems??? That is the real qstn!!

    I have big problems with the absolute paths so i'd like to use the relative but i don't know if they're portable.

    thanks 4 answering

  2. #2
    "Of" != "Have" bronze trophy Jeff Lange's Avatar
    Join Date
    Jan 2003
    Location
    Calgary, Canada
    Posts
    2,063
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, relative paths are portable to all systems.
    Who walks the stairs without a care
    It shoots so high in the sky.
    Bounce up and down just like a clown.
    Everyone knows its Slinky.


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
  •