I've got a new server with Nginx installed instead of Apache. On that server I have a functions.php script with a list of PHP functions common in my code. My code looks something like this:
<?php
ini_set('error_reporting', E_ALL);
echo "1";
include_once('../functions.php');
echo "2";
echo getHelloWorld(); // this is found in functions.php, simply returns "hello world"
echo "3";
When I hit the page on my browser, however, all that prints is 12
, indicating two things:
- The script died when it tried calling
getHelloWorld()
and - The error reporting seems to have done nothing
I've tried the various different types of error reporting without success (as found here: http://www.php.net//manual/en/function.error-reporting.php) and I've also confirmed (many times) that the getHelloWorld()
function is spelled correctly, error-free, etc.
I'm very new to Nginx, so if anyone can give me any clues as to what might be going on I'd really appreciate it. Thanks!