I have a project in php
and within this project, I have a folder named Funções
. Inside this folder I have several function files.
I have a file named Logado.php
, where I authenticate the user and call the pages to be loaded into it.
In every file I have on the site, I have to call the function file. I do it this way:
include "Funcoes/Inverte_Data.php";
What I wanted to know is, if I put all my functions inside a single file and call it in Logado.php
, would it slow the system down?
I think it would be much more practical because, since all the functions are in the main file, I'll just be able to execute, like this:
inverteData($data);
What do you recommend I do?