Grab username for intranet?
We have an intranet running on a Windows Server 2008 box, however the server has no AD on it (just a member server). Mostly the pages are html/php, however I am wanting to make some student/staff specific pages, so for instance when staff load the internet, their home page will differ (or have different access) to a student.
I can't seem to find an easy way (or just a way at all) to grab this info with php. What's the easiest way to get the username of the logged on user? I don't want to be messing around with login boxes, just something simple that works automatically (in the sense of needing no user input).