Page 1 of 1

Includes in a directory above the document root directory?

PostPosted: 17. November 2006 19:04
by tinkertrain
Hello all,
I have installed the latest version of xampp on an XP machine and it works great. I would like to know how to use includes (*.inc or *.php)in a directory above the document root directory. I know how to include the includes in php files, it's the config that has eluded me. I've read a fair amount about this subject in the past few days, and unless I'm completely stupid, I can't seem to get it to work.
Example
IF my includes directory is:
C:\Program Files\xampp\includes\
and the directory for the pages that would be using these includes is:
C:\Program Files\xampp\htdocs\mysite\

What file(s) are to be edited, and what should be added in those files.
OR,
can it be done with .htaccess? IF so what would I put in it and where to put the file, or is there one that can be edited.

If anyone would be so kind, please show me how this is done.
Kind Thanks
Train

PostPosted: 17. November 2006 23:01
by Wiedmann
I know how to include the includes in php files,

Then you know the answer for your question...

BTW:
http://de.php.net/manual/en/function.include.php

:-)

PostPosted: 18. November 2006 00:23
by tinkertrain
OK, yeah..., (a bit embarassed)
I knew that...
I don't know what I was thinking...
Thanks and may the xampp for windows gods smile upon you!
Consider this one closed.
All the Best
Train