I'm currently working on a script where I use an include (); statement to add a php file that contains all my funcitons. I have another include file in the same page that loads data that makes reference to one of the funcitons, however everytime I run the script I get this message:
Fatal error: Call to undefined function write_log() in /home/mysite/www/www/example/example.php on line 37
Which means the function is undefined, even though it should be defined from the include(); statement
I have tried this page without using any include(); statements and it works fine so I'm wondering if there is something I need to be doing to my functions (is there a global function() statement or something?) Can anyone help me out?