Reply to Re: Relative versus Absolute Path Problem

Your name:

Reply:


Posted by LAshooter on 07/18/05 05:23

"mark" <mark@something.com> wrote in message
news:dbeltg$8l3$1@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com...
>I am designing a website at the moment and looking at the difference
>between relative and absolute url links which is driving me crazy! I would
>like to use relative paths, but it is proving very restrictive as to how I
>design the file structure when it comes to including files.
<SNIP>
> Can anybody share some tips on what they do to overcome what must be a
> very common problem? Is absolute paths the answer so instead of calling
> ../images/image.gif from the include file, I would call
> /images/image1.gif?

I prefer to use root relative paths. Rather than linking to
.../images/image.gif as per your example, I would link to /images/image.gif
(assuming /images is in the web root).

This will NOT work if you are generating HTML emails, by the way! <learned
THAT lesson the hard way> For that type of coding, you have to use full
paths to the images (including http://www...)

Wm

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация