Hi, I have inherited a site that has: sub-domain: index.php page1.php page2.php etc.
admin dir: header.php footer.php stylesheet.css etc. The pages call the header and footer using $_SERVER['DOCUMENT_ROOT']."/admin/header.php"; The header then calls the stylesheet with a forward slash i.e. <link href="/admin/style.css" rel="stylesheet" type="text/css" /> images are called in a similar way from an image dir, from the header and footer. So everything works ok, because the sub-domain is the root. The owner found, if the true domain followed by the sub-domain dir was typed in, it loads stuff from the true root:- http://www.mainsite.com/sub-domain/ If I remove all the $_SERVER['DOCUMENT_ROOT']; and forward reference slashes, it cures the problem. But, I seem to remember some old browsers having a problem with this. i.e. calling a file from within a dir, and that file calling a stylesheet or image etc. Anyone got any advice on this. TIA. Community email addresses: Post message: [email protected] Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
