Re: require_once dying silently

From: Date: Wed, 09 Apr 2008 08:09:36 +0000
Subject: Re: require_once dying silently
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-272773@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");
Hi, It reads as if $CFG is an object and ->dirroot is not a public property of that object. So, I don't know what $CFG is, but I think the problem lays there. Also, OOP is nice and all (not to start a thread about OOP again), but putting your config into an object seems a bit overdo to me. -- Aschwin Wesselius /'What you would like to be done to you, do that to the other....'/

« previous php.general (#272773) next »