Re: Absolute file names for links
- From: "Jonathan N. Little" <lws4art@xxxxxxxxxxx>
- Date: Fri, 29 Feb 2008 09:32:02 -0500
Dave wrote:
As long as I keep graphic files in a folder below the HTML the graphics are found, but the actual location of the graphics are on a different disk. Tried all manner of things, but can't get the graphics to load, so would appreciate some help.With a *nix system you could use a symbolic link:
Test setup is:
D:\Programs\Editor\WebProject\HTML // The code
..\WebProject\HTML\Graphics // Graphics
The actual location of the graphics is:
F:\Documents\ArtWork
What I need to do is get the absolute link to the file correct, so I need some help here. Funny thing is that if the absolute link is a web address it works just fine, but not a Windows file.
I agree that placing the graphics either under the HTLM folder or on the same level is a better idea, but that won't happen until all of the art is approved, which won't happen until the demo web page is done. See the problem?
/var/www/sites/example.com/imagefolder -> /somewhere/entirely/different
and then later remove "imagefolder" link and replace as folder "imagefolder" and move all images from "/somewhere/entirely/different"
into it. AFAIK you cannot do this with Windows. So you have 2 options.
1) Use absolute links in the html that will later have to be changed. BTW don't use Windows-centric path nomenclature but rather:
"file:///F:/Documents/ArtWork/someimage.jpg" that later you will change to: "Graphics/someimage.jpg"
2) Make copies of images in "F:\Documents\ArtWork" to
"D:\Programs\Editor\WebProject\HTML\Graphics" and just keep folders synchronized and then just use the relative paths in your html "Graphics/someimage.jpg" and you won't have to change anything to publish.
3) A third possibility that just occurred to me is to dig up an old system and slap Linux & Apache on it which would give you the flexibility that I first mentioned, (symbolic links can point to NFS mounted folders)... and your development server would more closely emulate the majority of web servers that a live on the web.
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
.
- References:
- Absolute file names for links
- From: Dave
- Absolute file names for links
- Prev by Date: Re: Absolute file names for links
- Next by Date: Re: Absolute file names for links
- Previous by thread: Re: Absolute file names for links
- Next by thread: Re: Absolute file names for links
- Index(es):
Relevant Pages
|