by errol zantua.
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.