473,406 Members | 2,390 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Password Protected directory - grabbing uname

Hi.

I am hoping it is possible to 'grab' the username from when a user
enters their username and password to enter a directory ie say I sign
in with joe as the username i want the page in that directory to keep a
record that joe logged in and did whatever he did on the page (ie
approve delete or ban items - i konw the mysql code for this so i just
need to know how to get the username [because i think coding a login -
which i also dont know how to do would be harder - although that would
be good for users later on so this is really a temporary measure])

Thanks, James.

Oct 24 '06 #1
5 1318
James54321 wrote:
Hi.

I am hoping it is possible to 'grab' the username from when a user
enters their username and password to enter a directory ie say I sign
in with joe as the username i want the page in that directory to keep
a record that joe logged in and did whatever he did on the page (ie
approve delete or ban items - i konw the mysql code for this so i just
need to know how to get the username [because i think coding a login -
which i also dont know how to do would be harder - although that would
be good for users later on so this is really a temporary measure])
I believe you'd be looking at $_SERVER["PHP_AUTH_USER"].

--
Kim André Akerĝ
- ki******@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)
Oct 24 '06 #2
WOW thank you i really didnt think it would be possible due to security
issues, i'll try that now thanks again :D.

James.

Oct 24 '06 #3
Drat, I just tried it and it returned nothing (it was blank) and i had
logged in to the protected directory.

So any other ideas to what it is please?

Thanks, James.

Oct 24 '06 #4
James54321 wrote:
Drat, I just tried it and it returned nothing (it was blank) and i had
logged in to the protected directory.

So any other ideas to what it is please?
You might also check $_SERVER["REMOTE_USER"].

--
Kim André Akerĝ
- ki******@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)
Oct 24 '06 #5
Thats it thank you so very much :)

James.

Oct 24 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Wm | last post by:
Something just occurred to me... <yeah, I know, it scared me too> I just password-protected a website by including a password authentication script in each page of a private section. The script...
0
by: FleaBite | last post by:
Hi, I have developed a web service in PHP using NuSOAP. I want some form of security for this WS, so I've put it in a directory which is password protected, using an htaccess file. The...
2
by: nyclamusician | last post by:
The action URL to my form is a page that is password protected (standard password protected directory). What would I need to do to authenticate? I've tried ...
5
by: Joe-Paul | last post by:
Hi: I'm using VB 6.0 with an Access 2000 database. I set the password in the Access database to: abcdef1234. Then, using a MDIform, during the load event, I send the program to a procedure to...
4
by: prophet | last post by:
so hopefully only one more question about this..... so I have a webpage using frames. I have a header and a column down the left, and the main body (all of which have different htmls but are...
3
by: Noel S Pamfree | last post by:
Problem 1 ======= I need to create a page for a friend who operates a school website. She needs to set up a page so that only the Governors can access it. I thought I'd try to use JavaScript to...
10
by: MCPD | last post by:
hello i have a program in c# protected void Button1_Click(object sender, EventArgs e) { Datareader1 = MyCom1.ExecuteReader(); if (Datareader1.Read()) { ...
5
by: ahilar12 | last post by:
hi all, i wanted to check whether the password entered matches with the confirm password.either through javascript or through php.i have enclosed my code somebody help on this <html> ...
6
by: cnivas | last post by:
Hai All, Good Evening, I'm doing a small application using python and MySQL in APPLE MACINTOSH OPERATING SYSTEM. I want to to store the password in encrypted form in the database. While...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.