LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 08-20-2006, 06:58 PM   #1
windisch
Member
 
Registered: Nov 2004
Location: Gahanna, Ohio, USA
Distribution: Fedora 9
Posts: 158

Rep: Reputation: 30
Question A Way Tag Entry To MySQL With User Name


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:

Code:
$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!

Adam
 
Old 08-20-2006, 07:22 PM   #2
windisch
Member
 
Registered: Nov 2004
Location: Gahanna, Ohio, USA
Distribution: Fedora 9
Posts: 158

Original Poster
Rep: Reputation: 30
Nevermind, I figured it out. $_SERVER['REMOTE_USER'].
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mysql Error: Duplicate entry '0' for key 1 w0lv3r1ne Linux - Server 1 08-17-2006 03:30 AM
mysql entry problems atheist Programming 1 09-04-2004 05:06 PM
<br> in mysql entry Boby Programming 2 05-08-2004 10:50 AM
mysql entry in catalina.policy when using security option gschrade Linux - Software 5 03-23-2004 11:23 AM
mysql dupe entry error, how to avoid? hydro Linux - Software 0 09-20-2003 12:08 PM


All times are GMT -5. The time now is 02:25 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration