Results 1 to 2 of 2

Thread: link folder

  1. #1

    Member Since
    Jan 22, 2009
    link folder
    ok here it goes
    well i am doing a site in php on abyss server and the web pages are in the htdocs folder
    what i would like to do is to have a link to the folders n files on my desktop

    eg. /Users/johnswanton/Desktop/

    i know for links within the root folder are
    <a href="index.php">link</a>

    so what would it be for files and folder on the desktop

    thx in advance

  2. #2

    Benjamindaines's Avatar
    Member Since
    Jan 08, 2005
    A religiously oppressed state
    17" MacBook Pro
    I assume you're just asking about basic HTML links (sending viewers to a page within a folder, not pointing viewers from your webpage to your desktop folder as a file server). In this case, wherever the file you are currently editing (index.html for instance) is considered the root folder. If you want to point to a file in a sub-folder you would use something like this <a href="Folder_2/page.html">link</a> (note: you don't need a slash before the folder as you do on a computer file system). If you want to go back up to the root folder from the sub-folder you would use something like this <a href=".../index.html">link</a> (the 3 dots signify going up a directory, so if you needed to go up two directories you would use .../.../folder.

    Hope that makes it a bit clearer for you.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Clickable Folder Path Link
    By JerroldN in forum macOS - Operating System
    Replies: 0
    Last Post: 01-03-2015, 01:26 PM
  2. Replies: 1
    Last Post: 08-24-2012, 03:56 PM
  3. Deleted Users folder XXX does NOT contain Document or Desktop Folder
    By dphilly53 in forum macOS - Operating System
    Replies: 0
    Last Post: 10-12-2010, 10:39 AM
  4. How To Link To Folder On Web Site With No "index.html"
    By bgbevan@earthli in forum Web Design and Hosting
    Replies: 3
    Last Post: 03-22-2009, 01:51 PM
  5. D-link router using D-link DWL-650+ HELP HELP
    By maczzuto in forum Internet, Networking, and Wireless
    Replies: 0
    Last Post: 10-02-2004, 01:29 AM

Posting Permissions

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