Re: require_once dying silently

From: Date: Wed, 09 Apr 2008 03:27:22 +0000
Subject: Re: require_once dying silently
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-272762@lists.php.net to get a copy of this message
<?php echo 'begin brainstorm.'; ?> Is it possible that something is "going wrong" between the definition of $CFG->foo and when you require that could cause $CFG->dirroot to be null? Then it would point to /lib/setup.php, which definitely shouldn't exist and should thus throw an error, but maybe it's worth looking into. <?php require_once('Have you tried including a file that definitely does not exist?'); ?> That would rule out any error reporting problems anyway. Have you tried something to the effect of <?php echo __FILE__ . ' included'; ?> on the first line of setup.php? Adding <?php print_r(get_included_files()); ?> after the require_once() might also help. > I've confirmed that the file setup.php exists and is readable. I apologize if this seems obvious, but for the sake of brainstorming... it's readable by the user running apache, right? And even if it weren't, that should have thrown an error *shrugs* That's all I can think of. I hope it is of some use to you. <?php echo 'end brainstorm.'; ?> <?php signature('GREG'); ?>

« previous php.general (#272762) next »