Re: require_once dying silently
| From: | Chris | Date: | Wed, 09 Apr 2008 01:18:38 +0000 |
| Subject: | Re: require_once dying silently | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-272761@lists.php.net to get a copy of this message | ||
Richard S. Crawford wrote:
Hi, everyone. This one's been driving me bonkers for an hour now. Anyone have any idea why require_once would be dying silently in the script below? ------------------------------------ $CFG->dirroot = "/home/rcrawford/public_html/tanktrunk/tanktrunk"; $CFG->dataroot = $CFG->dirroot.'/moodledata'; require_once("$CFG->dirroot/lib/setup.php"); ------------------------------------ I've confirmed that the file setup.php exists and is readable. I've got error_reporting in php.ini set to E_ALL. I'm running Apache 2 and PHP5 on Kubuntu 7.10. Nothing shows up in my apache error log, and PHP itself produces absolutely no output, even though it will produce output galore when I put in a deliberate syntax error.Syntax errors in which file? The calling one (where you have the require_once) or the lib/setup.php file? Maybe something in your code is disabling your error reporting, I'd put both: error_reporting(E_ALL); ini_set('display_errors', true); in before the require_once and see what happens. -- Postgresql & php tutorials http://www.designmagick.com/