Forum Moderators: coopster

Message Too Old, No Replies

Can't find "include" path

         

Montbazin

10:37 am on Jun 15, 2006 (gmt 0)

10+ Year Member



Hello

when I have the following include() path:

include "../my_script.php";

everything workes out fine
but when I move my file into a deeper folder and then modify my "include path to:
include "../../my_script.php";

I get an error message telling me that it can't find the "myscript.php" file.
Can anyone tell me why?
Thanks in advance

eelixduppy

4:19 pm on Jun 15, 2006 (gmt 0)



>>>but when I move my file into a deeper folder...
If you are bringing this file into different folders and not parent directories then you would specify the include like this:
include("fold1/fold2/my_script.php");

Refer to include [us3.php.net] for more information.

Montbazin

9:52 pm on Jun 16, 2006 (gmt 0)

10+ Year Member



>>>but when I move my file into a deeper folder...

No, they are in parent directories that's why I write
../../etc