Page 3 of 3

Re: include problem

Posted: Fri Sep 24, 2010 4:29 pm
by califdon
Typically, a developer establishes a subdirectory (often named /inc) where all include files are stored. This path can then be defined as include_path (I think in php.ini) and then used wherever an include file is called for. It's not at all a complicated process.

Re: include problem

Posted: Fri Sep 24, 2010 4:55 pm
by Vegan
I use a lot of domains for various topics that I manage. Each has its own set of components. Some are widely unique.

Re: include problem

Posted: Fri Sep 24, 2010 5:08 pm
by John Cartwright
I just re-read the entire thread, and am very confused as to what your issue is.

You are having trouble setting up relative paths from within your document root?

Perhaps if you post the absolute paths of what you are trying to include and then your document root.

Re: include problem

Posted: Fri Sep 24, 2010 5:21 pm
by califdon
Vegan wrote:I use a lot of domains for various topics that I manage. Each has its own set of components. Some are widely unique.
So?? Just name your include files so you can call the appropriate one when you need to. They can still all be put in the same directory. This gets back to how you are hosting these domains. I'm assuming that you are using one Apache server, probably in Virtual Host mode. If you are, then you may want to have an /inc directory in each DocumentRoot.

Re: include problem

Posted: Fri Sep 24, 2010 9:31 pm
by Vegan
I was hoping Apache put the doc root for each site in an environment variable.