You are here: Re: Subdomains Retaining The Logos From The Root Domain « PHP Programming Language « IT news, forums, messages
Re: Subdomains Retaining The Logos From The Root Domain

Posted by Andy Jeffries on 06/22/06 08:03

On Thu, 22 Jun 2006 02:10:25 +0000, Jim Carlock wrote:
> $_SERVER['DOCUMENT_ROOT'] returns the root path for the subdomain, which
> is different than the root path for the primary domain.
>
> Is there a global variable to get the path for the root domain?

No, for the reasons Jerry explains.

> What's the best way to handle this when you want to keep use the logo
> for the root domain?

I'd say use a full URL in the img src for the logo on the subdomains:

<img src="http://www.rootdomain.com/images/logo.png" />

Cheers,


Andy

--
Andy Jeffries MBCS CITP ZCE | gPHPEdit Lead Developer
http://www.gphpedit.org | PHP editor for Gnome 2
http://www.andyjeffries.co.uk | Personal site and photos

 

Navigation:

[Reply to this 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

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