Posted by Confused but working on it on 09/25/07 17:16
On 2007-09-25 04:20:26 -0700, Lars Eighner <usenet@larseighner.com> said:
> In our last episode, <2007092500072816807-PostInGroups@wherevercom>, the
> lovely and talented Ron broadcast on comp.lang.php:
>
>> My solution is to make the link the full path with http://mysite.com
>> and so on so regardless of where the header is called from the link is
>> good. I always thought that relative paths are used within a site and
>> full paths to link outside. My solution will work but I think there is
>> a better way.
>
> There is. Write a php function to calculate relative paths.
Lars,
Used Jerry's doc root suggestion which gave me:
<?php include($_SERVER['DOCUMENT_ROOT']."/header.php"); ?>
Works fine.
Sorry to hear about the Gucci incident. Like your site.
Thanks,
Ron
[Back to original message]
|