Reply to Re: trouble with include files

Your name:

Reply:


Posted by Dikkie Dik on 09/07/06 16:29

Try:
require(dirname(__FILE__) . '/util_fns.inc');

laredotornado@zipmail.com wrote:
> Hi,
>
> Here's my files and directories ...
>
> util_fns.inc
> hello.php
> mirror_site/util_fns.inc
> mirror_site/hello.php
>
> On hello.php, I have the line
>
> require("util_fns.inc");
>
> However, I would like the behavior to be that the included file is the
> one that lives at the same level as "hello.php". I'm noticing that the
> "mirror_site/hello.php" file is including the "util_fns.inc" top level
> file when I want it to include the "mirror_site/util_fns.inc" file.
> How can I enforce this behavior?
>
> I would prefer not to create two separate hello.php files.
>
> Thanks for any assistance. Using PHP 4.3 if that is useful, - Dave
>

[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

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