Hello all,
1) Can I set a subdirectory path for an includes file?? As in, when my main php file is on the root can I "include" my server login file from a subdirectory? If so, currently I'm not having luck doing it... Here's a sample...
include("/public_html/phptest/AbConnect.php");
in which public_html is my ftp webserver directly, phptest is a subfolder and AbConnect.php is the file with the login info.
If I can do this, how do I do it? Or do I need the included file in the same directory?
2) When/if I have PHP and HTML files in a subdirectory and you want to have an "includes" file, do you just place it in that same subdirectory, or can you/ how would you reference a different subdirectory- or go up the path to the root???
Thanks for your help...