How to use the Include statement ?
Posted: Wed Jun 27, 2007 5:25 pm
Suppose I've three directories anh I have an include file called "inc.php", how would I use this file in my scripts that locate in other directories?
/dir1
/dir1/dir2
/dir1/include/inc.php
How would I use the above include file "inc.php" in "/dir1/dir2" script files?
How would I use the above include file "inc.php" in "/dir1" script files?
I tried different ways, but somehow it doesn't seem to be working. please post some tips. Thanks...
/dir1
/dir1/dir2
/dir1/include/inc.php
How would I use the above include file "inc.php" in "/dir1/dir2" script files?
How would I use the above include file "inc.php" in "/dir1" script files?
I tried different ways, but somehow it doesn't seem to be working. please post some tips. Thanks...