I would like to have my function run through all files within the system. What they have in common is header.php
. I would like the header function to be available in all files that go below it.
header.php
----------
function urlbase(){
$url = "meusite.com.br";
}
Corpo com include header e footer
---------------------------------
contato.php | usuarios.php | fornecedores.php | noticias.php
footer.php
Question : How to make the function available in all body files?