Reply to Re: includes and paths and organization

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на 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

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