I have a streaming radio request system that I've built, with lots of help from great people on this forum. I have recently added a rating system, so users can rate songs. The rating system (using PHP) does not have a section for a username, but it does grab the ip address and attach it to the rating in MySQL. The program uses this to grab the ip:
$ip = $_SERVER['REMOTE_ADDR'];
Is there a command like the above to grab a user who logs into the website, using a login/pass from .htaccess/.htpasswd?
I appreciate any help!