New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Web Design and Hosting Creating sites, scripting, and hosting discussions.

link folder

Post Reply New Thread Subscribe

Thread Tools

Member Since: Jan 22, 2009
Posts: 1
johnrswanton is on a distinguished road

johnrswanton is offline
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
QUOTE Thanks

Benjamindaines's Avatar
Member Since: Jan 08, 2005
Location: A religiously oppressed state
Posts: 2,789
Benjamindaines is just really niceBenjamindaines is just really niceBenjamindaines is just really niceBenjamindaines is just really niceBenjamindaines is just really nice
Mac Specs: 17" MacBook Pro

Benjamindaines is offline
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.

QUOTE Thanks

Post Reply New Thread Subscribe

« 'Mono' - Test ASP locally on a Mac? | event planning website opinions; »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Starter
Last Post
"Keep Music Folder Organized" deleted all my music on my external NTFS Hard Drive! thenice_guy55 OS X - Apps and Games 5 01-18-2009 05:21 PM
How to set "Enable Folder Options" to a specified folder using applescript? Isw OS X - Operating System 0 12-28-2007 04:56 AM
Internet help ( quick) watzup Switcher Hangout 8 09-22-2006 09:07 AM
Question about pointing documents, videos, folders to server folder markw10 OS X - Operating System 1 09-11-2006 12:03 PM
Replacing files within a folder, rather than the entire folder PFerrara OS X - Operating System 5 08-28-2006 10:34 AM

All times are GMT -4. The time now is 09:22 AM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?