Reply to Paths and include files problem, please help!

Your name:

Reply:


Posted by jj on 04/05/06 16:21

Hello everyone

I have a header.php file that i keep in an 'includes' directory which i
access via 'include' from various files within my application. The problem
for me is that this file is accessed from different parts in the directory
structure of my app.

If one file accesses it from a certain directory it works, but then if
another file acceses it from yet another directory then it cant find it
because the path is different !

For example:

the follwoing works for one of my files

include(/includes/include.php');


but for another one i have to use this because its in another part of the
directory structure

include('events/includes/include.php');


so as you can see depending on which file accesses the include file the path
works for one but not for another. I was wondering how i could get around
this and keep the path consistent so that all my files can access this file


Thanks a lot.

[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

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