I am using joomla 1.5.26 .
I can fetch the username and userid within the joomla file structure by
$user =& JFactory::getUser(); $user->username;.
Now I have a file which is neither under template folder nor under module folder nor under component folder. This is simply under root folder.
Now how can I fetch the logged in username?
Try this one create a new file on home page and access the username in this way