I am new to drupal and I want to see the logged in user name and his email address in a phpscript which is not in drupal installation. Any idea how would I go about it. Using drupal 6.2
tried this already
<?php
require_once 'includes/bootstrap.inc';
require_once 'includes/common.inc';
require_once 'includes/module.inc';
global $user;
if ($user->uid)
{
$name=$user->name;
echo $name;
}
?>
Thanks