Click to See Complete Forum and Search --> : include_path


pemacomber
08-30-2002, 12:25 PM
I am having trouble with my include statements for files located elsewhere in my directory. I can do includes when I have the file in the same folder or a level deeper in the directory. But....

I changed the php.ini file as follows:

;Windows: "\path1;\path2"
include_path = ".;c:\php\includes; .;c:\wwwroot\menu\2002-03\Special"

My understanding is that I could then simply have an include statement in my code soemthing like:

include ("file.php");

I have missed something somewhere. Has anyone had success with this? What am I doing wrong?

Thanks for any help that you can give me!!

jerdo
08-30-2002, 03:28 PM
The include in the php.ini has nothing to do with your script. It is the include directory used by the php.exe for dll's, etc. If you want to include something with no path in your script put the files in the same directory as one another.