Hey everybody--
I'm trying to use php to access files in a shallower path on my webserver, and I can't get it going. To clarify:
from:
http://www.website.edu/computing/faq/1747/index.php
I need to access: /computing/footer.php
When I do,
if(file_exists("/computing/footer.php");
it doesn't work.
I can do:
if(file_exists("http://website.edu/computing/faq/1747/index.php");
but that's insane, and the footer breaks when I actually use it.
I'm trying to use php to access files in a shallower path on my webserver, and I can't get it going. To clarify:
from:
http://www.website.edu/computing/faq/1747/index.php
I need to access: /computing/footer.php
When I do,
if(file_exists("/computing/footer.php");
it doesn't work.
I can do:
if(file_exists("http://website.edu/computing/faq/1747/index.php");
but that's insane, and the footer breaks when I actually use it.