Well I put a function in the local.php file:
function Local() {
$path_parts = pathinfo( __FILE__ );
$arquivo = "".$path_parts['dirname']."/".$path_parts['basename'];
return $arquivo;
}
I call the function in the index.php file like this:
include "local.php";
echo Local();
The problem is that it is returning the path of the function file, and I need it to return the path to the index.php file.
Does anyone know what I'm doing wrong?