0
I have this code that makes the includes:
<?php
session_start();
require_once "lib/conexao.php";
require_once "lib/functions.utilities.php";
require_once "lib/class.User.php";
$usr = new User(conectar());
timeValidation();
?>
But right now, I need to do a client part and I need to keep putting the ../
?
<?php
session_start();
require_once "../lib/conexao.php";
require_once "../lib/functions.utilities.php";
require_once "../lib/class.User.php";
$usr = new User(conectar());
timeValidation();
?>
Could I tell him to look straight at the include without putting ../
?
Ever thought of an autoloader ?
– Otto
When you have a time, search on Composer. Composer do all this work to include the files you need.
– Leandro Lima