Includes in a directory above the document root directory?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Includes in a directory above the document root directory?

Postby tinkertrain » 17. November 2006 19:04

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
tinkertrain
 
Posts: 2
Joined: 17. November 2006 18:31

Postby Wiedmann » 17. November 2006 23:01

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
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

:-)

Postby tinkertrain » 18. November 2006 00:23

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
tinkertrain
 
Posts: 2
Joined: 17. November 2006 18:31


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 84 guests