Switch17
07-03-2003, 03:28 PM
Is there any way that I direct an include statement to the root path of my site? I've currently got this:
include("link_path.php");, which works as long as the file is in the same subdirectory.
But I'd like to place the file in my root directory, so I don't have to have the file in multiple subdirectories. I had hoped that either
include("http://www.mysite.com/link_path.php"); or
include("../link_path.php"); would work, but unfortunately, it didn't work for me.
Also, I had search and found this post Here (http://www.codingforums.com/showthread.php?s=&threadid=10244&highlight=include+root+path), but I'm little confused on understanding it all.
Is something that can be easily done?
include("link_path.php");, which works as long as the file is in the same subdirectory.
But I'd like to place the file in my root directory, so I don't have to have the file in multiple subdirectories. I had hoped that either
include("http://www.mysite.com/link_path.php"); or
include("../link_path.php"); would work, but unfortunately, it didn't work for me.
Also, I had search and found this post Here (http://www.codingforums.com/showthread.php?s=&threadid=10244&highlight=include+root+path), but I'm little confused on understanding it all.
Is something that can be easily done?