Re: [PHP] require_once dying silently

2008-04-09 Thread Zoltán Németh
Greg Bowser írta: the above won't work, as the parser will try to interpret $CFG and put it in the string first, In that case, $CFG is either null, or it is indeed an object. If it is a standard object, which I it appears to be, then a fatal error will be thrown because there is no __tostring()

Re: [PHP] require_once dying silently

2008-04-09 Thread Andrew Ballard
On Wed, Apr 9, 2008 at 2:40 AM, Zoltán Németh <[EMAIL PROTECTED]> wrote: > Richard S. Crawford írta: > > > 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? > > > > --

Re: [PHP] require_once dying silently

2008-04-09 Thread Greg Bowser
>the above won't work, as the parser will try to interpret $CFG and put it in the string first, In that case, $CFG is either null, or it is indeed an object. If it is a standard object, which I it appears to be, then a fatal error will be thrown because there is no __tostring() function. If it's

Re: [PHP] require_once dying silently

2008-04-09 Thread Zoltán Németh
Aschwin Wesselius írta: 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/tanktrun

Re: [PHP] require_once dying silently

2008-04-09 Thread Aschwin Wesselius
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->datar

Re: [PHP] require_once dying silently

2008-04-08 Thread Zoltán Németh
Richard S. Crawford írta: 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->dataro

Re: [PHP] require_once dying silently

2008-04-08 Thread Casey
On Tue, Apr 8, 2008 at 8:27 PM, Greg Bowser <[EMAIL PROTECTED]> wrote: > > > 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'

Re: [PHP] require_once dying silently

2008-04-08 Thread Greg Bowser
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. That woul

Re: [PHP] require_once dying silently

2008-04-08 Thread Chris
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->datar

[PHP] require_once dying silently

2008-04-08 Thread Richard S. Crawford
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.'/moodle