file_exists is not case sensitive! |
file_exists is not case sensitive! |
allenph |
Feb 22 2012, 05:43 AM
Post
#1
|
Novice Group: Members Posts: 21 Joined: 15-February 12 Member No.: 16,477 |
So I guess I'm going to need something that will preform this same function but will also check the case. What im doing is making a picture in a directory named the users username.password and registering and signing ARE case sensitive so that means if someone had an account USERNAME PASSWORD and someone else had the accoun username password it will get all jumbled up. Im on windows if that makes any difference (i think it might be the OS) HELP PLEASE!
|
Brian Chandler |
Feb 22 2012, 06:52 AM
Post
#2
|
Jocular coder Group: Members Posts: 2,460 Joined: 31-August 06 Member No.: 43 |
Well file_exists() certainly must be case sensitive, since that's how all proper operating systems work. Perhaps you're using Windoze, in which case I don't think you can have separate files fred.pwd and Fred.pwd, and this won't work at all.
AAMOF, I don't think it's a good idea to check a username by seeing if a file exists : you should use a database table. I also don't think it's really a good idea to allow usernames distinguished only by case. |
allenph |
Feb 22 2012, 06:56 AM
Post
#3
|
Novice Group: Members Posts: 21 Joined: 15-February 12 Member No.: 16,477 |
Well file_exists() certainly must be case sensitive, since that's how all proper operating systems work. Perhaps you're using Windoze, in which case I don't think you can have separate files fred.pwd and Fred.pwd, and this won't work at all. AAMOF, I don't think it's a good idea to check a username by seeing if a file exists : you should use a database table. I also don't think it's really a good idea to allow usernames distinguished only by case. Would it work on a linux filesystem? do you know if I can make a linuz file system and still call on it with windows? |
allenph |
Feb 22 2012, 10:03 PM
Post
#4
|
Novice Group: Members Posts: 21 Joined: 15-February 12 Member No.: 16,477 |
Screw it. I just made my registration and sign in case insensitive. thanks anyways!
|
Lo-Fi Version | Time is now: 19th April 2024 - 10:59 PM |