You are here: trouble with include files « PHP Programming Language « IT news, forums, messages
trouble with include files

Posted by laredotornado@zipmail.com on 12/16/01 11:57

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

 

Navigation:

[Reply to this 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

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