Twentyoneth Posted February 7, 2007 Share Posted February 7, 2007 I have directories like "New" and "Old", you can get to them by typing "New" "new" "old" "old", not recognizing the capital letters, how to I make it where only type "New" and "Old" will work because they have capitals in them, also for dirs like "NewOld", you can get to them by typing "NewOld" or "newold", I need capitalization recognition....any help? Quote Link to comment https://forums.phpfreaks.com/topic/37539-how-to-force-exact-dir-name/ Share on other sites More sharing options...
Twentyoneth Posted February 7, 2007 Author Share Posted February 7, 2007 I have looked in the php.ini file and the apache config file, and I didn't see anything that would let me force exact dir names. Did I miss something? Quote Link to comment https://forums.phpfreaks.com/topic/37539-how-to-force-exact-dir-name/#findComment-179520 Share on other sites More sharing options...
Jessica Posted February 7, 2007 Share Posted February 7, 2007 Your question doesn't make much sense. You say "you can get to them"...how? What is the context? And why do you need it to match exactly? Quote Link to comment https://forums.phpfreaks.com/topic/37539-how-to-force-exact-dir-name/#findComment-179522 Share on other sites More sharing options...
Twentyoneth Posted February 7, 2007 Author Share Posted February 7, 2007 Well, what I mean is, how can I make it where you cannot get to this address: http://whatever.com/ThoMas by typing http://whatever.com/thomas I need this for some code that checks to see if the user is the same as the directory they are in to show certain code. But also when a guest visits the site via http://whatever.com/thomas, the code that checks for ThoMas doesn't work... Quote Link to comment https://forums.phpfreaks.com/topic/37539-how-to-force-exact-dir-name/#findComment-179551 Share on other sites More sharing options...
Jessica Posted February 7, 2007 Share Posted February 7, 2007 Can there be a ThoMas and a thomas? If not, just make the code convert the name to lowercase in all instances to check for equality. It seems like this is something that should be handled with mod_rewrite, not actual directories - that might make it easier in the long run. Quote Link to comment https://forums.phpfreaks.com/topic/37539-how-to-force-exact-dir-name/#findComment-179553 Share on other sites More sharing options...
Twentyoneth Posted February 8, 2007 Author Share Posted February 8, 2007 I'm using "$working dir = getcwd()" like this: if ($user == $workingdir) { so if a user logs in as "ThoMas", and the url they went to was "thomas", it poses a problem.... Quote Link to comment https://forums.phpfreaks.com/topic/37539-how-to-force-exact-dir-name/#findComment-179589 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.