include problem
Moderator: General Moderators
Re: include problem
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
I use a lot of domains for various topics that I manage. Each has its own set of components. Some are widely unique.
Hardcore Games™ Legendary is the Only Way to Play™
My site is powered by LAMP
My site is powered by LAMP
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: include problem
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.
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
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.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.
Re: include problem
I was hoping Apache put the doc root for each site in an environment variable.
Hardcore Games™ Legendary is the Only Way to Play™
My site is powered by LAMP
My site is powered by LAMP