www.webdeveloper.com
Results 1 to 6 of 6

Thread: Simple question about ./ and ../

  1. #1
    Join Date
    Jun 2014
    Posts
    9

    Simple question about ./ and ../

    Hey,
    I would like to know about the ./ and ../ difference.
    Can yo

  2. #2
    Join Date
    Mar 2011
    Posts
    1,134
    Yes.

    ./ is relative to the current document's directory

    ../ is relative to the parent of the current document's directory (one level up).
    Rick Trethewey
    Rainbo Design

  3. #3
    Join Date
    Jun 2014
    Posts
    9
    Thank You!

  4. #4
    Join Date
    May 2014
    Posts
    30
    ./ Same directory. /* This is no need to the current directory. just give the file name is enough */

    ../ Parent directory. /* If you want want get data from an previous directory of current directory should mention this or write name of the previous directory */

  5. #5
    Join Date
    Jun 2014
    Posts
    9
    What if i need 2 steps?
    what if i need root directory?

  6. #6
    Join Date
    Oct 2013
    Posts
    396
    2 "steps" up: ../../
    Root: /

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles