Re: A question on the term CFG.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jasper,
I thought about this and so I did a grep on "autoload"
and came up empty. Is there a different way of checking
for the magic function?
Thanks

On Mon, 2005-08-08 at 08:24 +1200, Jasper Bryant-Greene wrote:
> Or if it's PHP 5 they might be using an __autoload() magic function 
> which gets called whenever a class that isn't declared is instantiated. 
> That function could be require()ing another file.
> 
> Jasper
> 
> 
> Chris wrote:
> > That isn't created by PHP, it must be declared in the code somewhere.
> > 
> > Maybe there is an auto_prepend_file set?
> > 
> > http://www.php.net/manual/en/ini.core.php#ini.auto-prepend-file
> > 
> > Chris
> > 
> > wayne wrote:
> > 
> >> First, I'm new to PHP. I have a script that
> >> has a piece of code that looks like this -
> >> require_once($CFG->wwwroot . '/lib/mylib.php');
> >> My question is this, I'm trying to find out
> >> how the class $CGF was initiated.There are no
> >> include or require statement before the statement.
> >> Is $CFG a global variable? If how does it get
> >> initiated?
> >> Tnaks.
> >>
> >>  
> >>
> > 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux