Checking For Username...
How do I check in a mySQL table called 'Users' on column user_name when
registering a new user_name to make sure the new 'user_name' does not
already exist in that column?
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Get Username From IIS
I am trying to get the username a person enters when using basic authentication with IIS. Can php do that? That is a person enters a url. He is prompted by IIS for a username & password. IIS allows the user in. I am assuming the server now has the username somewhere.
Using The Username
I am using the sessions for different users, based on their username,,, can i use this statement $username = session_name('username');
Getting Username
My directory uses .htaccess authorization by requiring a username and password. I want to keep a simple log of all transactions to a DB which will provide the who-what-when-where for all edit/add/delete operations. To this end, I want to obtain the username provided in the ..htaccess login. I've tried $PHP_AUTH_USER and $PHP_REMOTE_USER but both variables are blank.
Only One Session Per Username, But How?
I am developing a small database which users will have to log in with a username and password, which is checked against a MySql database. I am using sessions which will end when they either hit the log out button or close their browser. Everything works fine so far, but I can't figure out a good way of making sure if a username is currently logged in (has a session open) that no one else can log in using that username. Would adding a column to the database and querying the database to see if they are logged in be the best, or is there an easier way with sessions that I just don't know about. The issue with using a database by switching a simple yes/no column, would be if they close their browser or computer freezes, they try to log in but can't because the database was never reset.
Displaying Username
I am newbie to php. I did a login Script using dreamweaver tools.Everything works fine but i have problem showing username like welcome username! on top of page when user logged in.I need like this when unauthorised user enters in to my website it should display login box.When user registered and logged in it should display message like WELCOME user! in the same place.
Suggesting Available Username
I have to show some of the posible usernames available when a user can not get a perticular username in a very normal member registration form.
Validate Username
I have created a sign up page. People enter their password twice and those fields are compared. If not the same then an error message is given. I want to compare an entered username against a username in y database. My script so far is: Code:
Username And Password
I've got this 'helpdesk' application where people can simply fill out a form and send it off. Each time they have to type in their name, phone number and email address- then answer the questions that they're having problems with. I'd rather store that common non-variable info in a database and pull it out so that they don't have to type it in each time. Is this possible without issuing each individual their own username/password? Or would it be best to have each person log in one time and create their own accounts? Before I just had 3 or 4 general usernames/passwords that the organization members used. I'm trying to keep confusion down to a minimum here. Would it be feasible to have them log in with their last name and pull the information based on that- or there must be another way.
Username For A Session
What is the best way to keep track of a username during a session? Let me elaborate a bit... I want to set up a username/password with htaccess and then allow the verified users access to a number of webpages which allow them to add/delete/modify different items. But I want to keep track of who the current verified user is. What is the best way? A cookie? An environment variable?
Adding Username To Url
I am developing a multilevel marketing system. This system will provide users their own website(virtual). No real disk space. just play by database and account status (paid or not paid). I would like to have the url of a registered user like this www.mysite.com/username/ I can create up to this point. when i tried to access this url. its the requested url is not found..
Validate Username
Can anyone tell me how use regular expression to validate a username with alpha numeric and special character but not space?
Username Regex
anyone have regex script to check the "username" value, to avoid it use special characther?
Username Filtering
I'm having problems with regular expressions. How could i check if a variable has only letters and numbers in it?
PHP-AT: Where To Put Username And PW For SetReturnURL
I am trying to make a setReturnURL call with PHP-AT using Ebay_Authentication->add (hope this is the right way). But I don't know where to put the needed username and password for this call. I did it in the ebay.config.php and even set it via setRequestPassword / setRequestUser but I always get an error like "wrong password or wrong username".
Set FTP Username And Password
I create a new user and set up the directories with a script. One of the directories is for uploading files and I create an FTP username and password manually in my isp’s control panel. This locks down the directory when the user logins with an FTP client. I have been told that I should be able to set the FTP username and password from the script but despite lots of searching cannot find the answer.
Windows Username
i am using apache,mysql and php on windows XP and soon wil move to windows server 2003, need something that will work on both. i need some kind of script that will get me the current clients windows username. i dont really care what language it will be written. all i need is that it will be possible to embbed it into php page without any extra modules if possible, if not then with some kind of module that is free. (how to embbed it as well will be more than welcome)
Username, Password, And Hotmail?
I have a script that collects a username and password which doesn't seem to work if the user is a hotmail/msn frame. When they get a message on the system a notification is sent to them with a link to the site, and again, that link doesn't work as it should - unfortunately a lot of the users use hotmail. What's the problem? What do I need to do?
How Can I Get IMAP Username And Password?
the IMAP functions has been compiled into PHP on my server, and then each time access my page index.php from a web browser, I was asked enter username and password, is there any nice person tell me, how can I get IMAP username and password?
NT Username / ADSI - W32API
I've been trying to get the some information out of the NT domain using php on an IIS5.0/Win2k server. This does not appear to be easy. Since i'm not a skilled programmer i do not have the background to dig thru the w32api functions and use them in a usefull way. People who'd like to advise AUTH_USER, REMOTE_USER, LOGON_USER or other servervariables please don't, this seems like a dead-end road to me for this setup. I found a quite intriguing piece of code wich uses w32api to read the nt-domain-username from netbios but this is not a workable solution since the results are different between workstations. It's a pretty example of the awesome power these w32api functions are yielding allready. -- code is in attachment -- Now, what i'm looking for is some way to simply obtain the username of the user wich has just reached the intranet-server. Is there a way to access the same objects-components as ASP does ?
Setup Username And Password
Normaly only Administrator can setup username and password for new users. However, could you please tell me how a visitor can regist himselve a new username and password so that he can post new messages. So he only can read messages but if he wants to post new message, he has to input his username and his password. (For example, visitor can read message in this forum but if he want to post message he have to regist for an username and password) then he can post). How I can set up like that. I thought that cookies does not work in this case.
Check For Existing Username
I have a MySQL database that uses create new accounts via HTML form. I need PHP to check to see if the username of the new account already exists in the user database, if so, report a message "Username already exists, please pick another one" (for example). If the username doesn't exist, then continue adding the new user account information to the database. Below is the PHP code that is run when the form information is submitted. PHP Code:
Going Through A Database And Printing Out Username
I have a MySQL database with some info in a table called "memberinfo" in a database called "chat". Now, what I want to do is go through the table "memberinfo" and grab all the values in the colum "uname" and print them out. I've tryed a few ways but none of them work. It prints out the first name in the colum but not they rest.
Emailing Username And Password
I want to be able to look up a person username and password so that I can send there information to them by email. the code does get the email address and looks it up but the problem is getting the username and password to be retrived and to be displayed. The email is sent properly but for the username i get "Resource id #2" and password I get "Resource id #4" as output. The txtemail is sent by a form. PHP Code:
Username And Password Validation In PHP
I have a photo gallery site and would like to 1. validate login information(username & password) 2. logout user due to inactivity for certain amount of time 3. Create logout button
Username Regular Expression
Does anyone have a good regular expression snippet to validate usernames and passwords? -- Geoff Berrow (put thecat out to email) It's only Usenet, no one dies. My opinions, not the committee's, mine.
Embeding Username And Password?
I have a live audio feed that I listen to off my friends website that is password and username protected. He gave me the user/pass and I asked him if I could post the link on my website so I can let others listen to the stream as well. He said that since its user/pass protected I would have to come up with a way to automatically username and password when the stream is started and he said if I can get it to work then he will let me use it. I asked if he can just remove the user/pass but he said there are other people who abuse the stream and thus he wont remove it. So my question is, is there a way I can embed this live audio feed along with the username and password in a PHP script so when people go to listen they are not promoted for a user and pass?? I really have no idea where to start with this thus Im asking on here!
Php Get Windows Domain Username?
I have a W.A.M.P box running on a corporate network and i want to get the client windows domain username to restrict access to a page without a login form?
Displaying Username From Foreign Key
I have created a php page (using mysql dbase) so people can leave comments on a comic (yeah, I like comics! :p). I've figured out how to display these comments, and that works how I'd like. The thing is, when a user leaves a comment, it collects the comment, rating, date, title and memberid. All these things are stored in the membersreview table. The problem comes when trying to output the member name with the appropriate comment. The membername is stored in the member table, with the memberid (stored in the membersreview table) acting as a foreign key. My long winded question is, how do I output the relevant membername rather than just the memberid (which is just a number)? Here's the code I have that is working so far: Code:
Unique Username Generation
As part of a system I have developed, usernames are generated based on the first letter of the users forename, plus all of their surname, eg. JBloggs - this is standard at the company. What I am wanting to to is if a username already exists (which is unlikely as it is a small company - but possible nonetheless) is to add a number to the end. I have it working so that if JBloggs already exists and I was to try to add another Joe Bloggs, the username would be JBloggs1. However - that's easy. What I am not too sure about is how I can check to see what the number currently is, so that in the extremely unlikely event that a third username would be the same, it would be JBloggs2 - and so on.
Check Username... Javascript
I'm making a registration form where user can check if inputed username is avialable. So I've made a button and now trying to open popup window, wich will display the info about username, but I can't figure out how can I pass the variable from this page to this pop up window using php. And the most interesting thing is that page should not be reloaded, I mean if user inputs some text in textfiled and clicks on "Check", it should display the info about username.
Verify Username And Password
How do I use php script to check whether a persons username and password match thoes in a table. I have a table with all the details of users and a form which allows a user to type in their username and password. On the action of onsubmit how could i use php to check from the table that this name exists?
Mirroring Username And Password
I was wondering if someone could give me some guidance in mirroring 2 databases with their username and password. I have 2 databases that I would like to mirror with the username and password. Do i setup a script? cronjob?
Cannot Use Or Change Username Or Password
I bought a website written in PHP which uses mySQL. The site works fine, but the problem I am having is that I cannot access the admin area because the username and password do not work. The company I bought the site from has been trying to fix the problem for 3 days, but to no avail. I was wondering if any of you have an idea as to what the problem might be. They have tried to reset it, make a new one etc etc etc, but nothing works. Here's the code for the admin login.php file Code:
Redirect Browser With Username And Password
I want to redirect browser with username and password, but following code does not work header("Location: http://userassword@21.22.39.54/t.dat"); browser still pop up a window asking for username and password. is there anyone can help me out with that?
Passing Username/with Mysql Lookup
I want to pass the username entered at login and at the sametime have a lookup where the team name is found, via username, and both are passed to the user_mainpage.
Script For Username & Password Verification
i have this code here to see if the users that come to my site and logon have the correct username & password. they are stored in the file ../extensions/l&p.txt (loginsandpasswords.txt). can it be simplified from what it is now? PHP Code:
I've Deleted Admin Username And Password,
I've deleted my admin username and password which was initially set at test. Now I can't log into my website as the administrator. How do I put Username and Password back so that I can set my own password and username again, log in to my website and edit it. Which file do I have to edit, and where do I re-set the Username and Password?
Securing Host Username Password
i am going through the process of password protecting a directory using ..htaccess and .htpasswd i am experiencing difficulty. so my question is without making life anymore difficult is if the webhost already has a password protected directory option is this secure enough? i dont need password protection at the directory level and at the file level do i? i want to protect the php_include files that will contain my $host $username $password. here is what i did only so you dont think i am totaly crazy. AuthUserFile /home/file_access/.htpasswd AuthName EnterPassword AuthType Basic require usernamegoeshere i put .htaccess in a directory like publichtmlfolder/php_include i put usernamegoeshere : encryptedstringgoeshere i must be missing some little step. i uploaded ascii. i just dont know. i am at a loss. note: it isnt even displaying the EnterPassword in the password dialog. It seems to be the password directory dialog for logging on to ipowerweb. The only thing i can say looks even partially right is when i type in mydomainname/php_include i am prompted with the password dialog.
Get Auth'd Username From IIS4 Challenge?
I'd like to setup some intranet pages that are personalized by user. However, I'd like to keep my users with one name/password that's dynamically updated in all "places" when they change their userame and password. Thus, I think I want to use IIS4's built in NT Domain auhentication. Now, I know how to suck the current authenticated user in VBScript ASP code... is there any way to get this same info in PHP? Would a session variable be the way to go, putting the auth routines in ASP and then transfering the info to PHP with session vars? or something else "Secure"? I'm not a pro on session variables.
Login/username Issue Arrays
I am attempting to make a list of valid usernames and passwords for a login page. I am exploring the world of arrays in PhP and I am having trouble. You guys can see what I am trying to do with the code below, I need to have $validun[0] corrilate with $validpw[0], etc. etc. all the way to [3]. Does anyone have any ideas? Code:
Authenticaiton Parameters Like Username & Password
How can i send these username & password parameters through PHP? Please find the attached image with this post! Normally i've to type the username and password to enter the site but is there a way to send this parameter automatically through PHP?
Logging IP, Username & Time DB Is Accessed..
I've been reading some books and playing around w/ a bit of code, but I still have a question that I cannot locate the answer to using the search feature or in any of the books. What I would like to do exactly is when I connect to a MySQL DB using PHP I would like to log the IP (which I think I understand how to do), as well as the username & time a specific password in the DB was accessed. I don't expect anyone to code this for me, just help me out by letting me know if I'm on the right path and if I'm correct that what I want is possible.
Username Creation Unique Check
using a simple form to insert data in to mysql URL it will not however check whether the username has already been 'taken' how do I go about coding something like this. I understand that it will be a simple check procedure. If there is already that username then an error message will appear informing them of that. PHP Code:
How To Set Username/password Authentication For Webpage
i am trying to assign authentication for my web page by using the code <?php if ($PHP_AUTH_USER != “XXX” or $PHP_AUTH_PW != “XXX”): header("WWW-Authenticate: " . "Basic realm="Protected Page: " . "Enter your username and password " . "for access.""); header("HTTP/1.0 401 Unauthorized"); ?> <HTML> <HEAD><TITLE>Authorization Failed</TITLE></HEAD> <BODY> <H1>Authorization Failed</H1> <P>Without a valid username and password, access to this page cannot be granted. Please click ‘reload’ and enter a username and password when prompted. </P> </BODY> </HTML> <?php else : header("Location:http://localhost/"); endif; ?> By using this code it always ask me the username and password just i entered the correct details since it ask me for authentication. Any body tell me how to use it.
Echo Windows Username Intranet
i a making a form that will insert a few things in to a mysql database, i am trying to make a field that will show the users domain username but i cant seem to find anything to do it, i am in a corporate network with thousands of users, i am using one of the pc's to setup a mysql / php / apache server just using (xampp) we will access the pages using netbios (http://computername/index.php). our intranet needs windows credentials to access most of the pages so the info must bestored in ie i just cant find the php code to access it, i have tried, <?php print_r ($_AUTH_USER); and a few variations.
|