Re: Absolute file names for links



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.

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?

With a *nix system you could use a symbolic link:

/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
.



Relevant Pages

  • Re: Directory path for Print to file ?
    ... "Web Archive, single file ", would store a copy in whatever folder ... With my Windows XP pro setup, besides printers, there is a "Microsoft XPS ... Don't forget the option of making a graphics copy of anything that appears ... using Wordpad is that you can add text comments relevant to what you were ...
    (microsoft.public.windowsxp.general)
  • Re: An easy one? Print Explorer folders graphically
    ... If you don't need the graphics, ... Windows Explorer's Folder View with yellow graphical folder glyphs. ... but most such utilities outputs text files or ...
    (microsoft.public.windowsxp.general)
  • Absolute file names for links
    ... 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. ... Funny thing is that if the absolute link is a web address it works just fine, ... 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. ...
    (comp.infosystems.www.authoring.html)
  • Re: Anybody here endure C/Cpp? (.h to .inc conversion)
    ... making loads of complaints and, for example, it was mentioning that some X ... Windows program and look into "Task Manager", ... protocol" that seems to justify that any X server must be 500GB of disk ... The fact that graphics are pixel-based (and argubaly NOT ...
    (alt.lang.asm)
  • Re: [announcement] SYSAPI and SYSSVC for Windows
    ... the correct working of a graphics driver, ... For example, imagine windows could have a flip side, or would be ... somehow you have enough CDs, some of which might be copies. ... but that method can work only if they have only very few customers. ...
    (comp.lang.ada)

Loading