How to check who is logged in from .htpasswd protected folder? so i can do something like if ($loggedin) { // do this command } and also checks who is logged in
Its a little bit more complicated then that, here's a link to help you on your way. If your still stuck by all means post up your code and let us know what you have done so far etc..
It's actually quite simple.. the variable $_SERVER['PHP_AUTH_USER'] will contain the authenticated user.