Alright this is what my code looks like
index.php
require_once($WebsiteRoot . "/include/testfile.php");
TestFunction();
/include/testfile.php
function TestFunction()
{
echo "It Works";
}
And it gives me the error:
Fatal error:
Call to undefined function TestFunction() in /path/index.php on line 49
Any idea what i'm doing wrong? Thanks
echo $WebsiteRoot . "/include/testfile.php";
What do you see? – Artemisaecho $WebsiteRoot . "/include/testfile.php";
just to see if it even is the file – Seften