Reply to Re: why won't my image appear?

Your name:

Reply:


Posted by Steven Saunderson on 10/02/14 11:44

On Fri, 07 Apr 2006 22:52:25 -0700, Jim Moe
<jmm-list.AXSPAMGN@sohnen-moe.com> wrote:

>John Salerno wrote:
>> Here's the link, if it helps: http://python.johnjsalerno.com/
>>
>> I have the Python logo set at the top of the page, but the alternate
>> text gets displayed instead.
>>
> src="../icons/python-logo.gif"
> Yes, it is because you are in a subdomain. Its DocumentRoot (using
>apache terminology) does not share the same space as the main domain. You
>are asking to go to a directory that is higher (more "rooty", a
>super-root?) than the root directory of the subdomain.

I thought that it might be a security issue (accessing beneath the root
for the subdomain) but I have seen pages that request files (e.g. CSS)
that are lower (more "rooty"). I checked with Opera and it drops the
leading '..' when building the URL for the image. This doesn't happen
in the other cases I have seen as they have a path after the domain
name. So the '..' must be processed by the browser rather than being
passed back to the server. If the browser can't drop the last level in
the path it just ignores the '..'.

--
Steven

[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

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