explain this small piece of PHP code please.....
Posted 24 September 2006 - 11:33 PM
$CFG->wwwroot = 'http://site.local';
i can't find -> anywhere in my two php books or online to tell me what this piece of code is doing...
I'll take a guess that it's seeting a variable to 'http://site.local' but don't really understand why the -> is used or what it's there for...?
Posted 24 September 2006 - 11:45 PM
Donations gratefully received
|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts
Posted 24 September 2006 - 11:47 PM
In this case, $CFG is an object that has a property ('wwwroot'), and this property is being set to 'http://site.local' .
Somewhere in your script(s) there's probably a '$CFG = new NameofClass();' line. Find it and then check the class.
For a better understanding, google php oop tutorial and read some or check here http://www.phpfreaks...rials/48/0.php
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users