I’ve inherited some code:
include('../cfg/db_setup.php');
require('./fpdf/fpdf.php');
I know that ../cfg means start in the current directory, then go up one level and down into the cfg dir. What does the ./fpdf mean? I’ve never seen a single dot slash used in a file path, and can’t seem to find the fpdf directory anywhere on our server, but the code is working so apparently it’s there somewhere.
.is defined as the current folder.So, if the PHP script is located at
/path/to/script/, then the second statement will look for/path/to/script/fpdf/fpdf.php