pardon me for this newbie question but on which php file could i see the USER class? tnx
It is of no particular class. (Or, to be precise it is the stdClass class, which is built in to PHP).
If you want to see what $USER looks like, just make a test script that does
print_object($USER);
thank you for you reply. sorry, but i am very noob in PHP.
this is what i wrote in my test.php
<?php
require_once ("/moodle/lib/datalib.php");
print_object($USER); ?>
it printed an undefined variable error. how do I do this? sorry for the troubles.
<?php
require_once ("/moodle/config.php");
print_object($USER); ?>