I just had a similar problem yesterday. In my case I had a path issue on an include once. I don’t fully understand why it works on my local server and not my hosted server.
My project look something like this on my local machine:
Which worked locally but not on the server. To get it to work on the server I changed the line to:
include_once __ DIR __ . ‘/…/mysql/helper.php’; //There should be no space between the __ and the DIR, I don’t know the proper markdown here.
Looking through the include / require documentation right now, it looks like it may be better to use require than include. Include will generate a warning and keep running the application if not found where as require will error when the file is not found (rather than when the function called is not found).