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
[Back to original message]
|