OK, this is a strange one I am hoping someone can help with.
I have a file with a heap of functions which work fine. This file is included in my other files, and the function to display the content is called. For example I include the master file in guestbook.php, which calls showGuestbook(). Same with contact.php, it calles showContact(); etc.
The file is outside the web root of the website calling it.
So I went to add another function called downloadFile(). When I try to call the function, it gives me the "call to undefined function" error. I have tried renaming it to a few diff things, same error. So I thought there could be a brace error somewehere in the file. This is the strange bit.... When I put that function at the top of the file, the page seems to fail to parse. None of the functions are available...
The function so far is simply:
function downloadFile()
{
echo "Download File";
}
Can anyone shed some light on this strange behaviour, especially the errors that occur just because I move the code higher up the file.