The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> file_exists is not case sensitive!
allenph
post 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!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Brian Chandler
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
allenph
post Feb 22 2012, 06:56 AM
Post #3


Novice
**

Group: Members
Posts: 21
Joined: 15-February 12
Member No.: 16,477



QUOTE(Brian Chandler @ Feb 22 2012, 06:52 AM) *

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?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
allenph
post 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!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 16th April 2024 - 03:52 AM