I can see PHP codes like this:
<?php require_once 'includes/temps/header.php'; ?>
everything is working fine I'm just wondering how was the file found?
This PHP code <?php require_once 'includes/temps/header.php'; ?> is found on this folder admin/templates/loginform.php
and the file it is trying to include or require is found here includes/temps/header.php
The structure look like this on my local machine:
admin (folder) it is found here admin/templates/loginform.php <?php require_once 'includes/temps/header.php'; ?>
includes (folder) requiring the file found on this folder includes/temps/header.php
How come it is working fine and was able to locate the file it is trying to require? Why not use this <?php require_once '../../ these kind of things to go outside of the folder and go to the root?
I'm thinking about base URL is place somewhere among the files? What exactly does it do? I mean it gives the Wamp server orientation where the root and other folders??
I'm using Windows 10 and wamp server.