|
|
#10 (permalink) |
|
after g, before i
Resident.
Joined in Jul 2004
Lives in N,BC,CA
8,092 posts
Gave thanks: 48
Thanked 131 times
|
strpos() is a function that gets the position of a string within a string. When password is the only text, it's start position is 0, making it return false. When the underscore is added infront, it makes it 1. It's an ugly use.... so look at my previous post.
|
|
|
|
|
|
#11 (permalink) |
|
All Ur Base R Belong 2 Us
Excelling Contributor
Joined in Feb 2005
Lives in Vegas & New York
824 posts
Gave thanks: 2
Thanked 6 times
|
yeah strstr(strA,strB) gets the text of strA from where the first occurence of strB is found.
i.e. echo strstr('Hello','l'); //prints llo However, you don't need to do the strstr(strtolower(strA),strB) as Haugland suggested, since stristr is the case insensitive form of strstr. So you can do PHP Code:
__________________
Nobody doing nothing |
|
|
|
|
|
#12 (permalink) |
|
rocks your socks.
Resident.
Joined in Mar 2004
Lives in fear of Obama.
Hosted on Pass 7
13,170 posts
Gave thanks: 8
Thanked 35 times
|
One day I hope to understand this stuff.
And the amusing thing was that when I tried it, I went to login to the area that would use this function, and my computer decided to reset. |
|
|
|
|
|
#14 (permalink) |
|
All Ur Base R Belong 2 Us
Excelling Contributor
Joined in Feb 2005
Lives in Vegas & New York
824 posts
Gave thanks: 2
Thanked 6 times
|
strpos also has a case insensitive version stripos. And it could have worked if you added !== false to the expression. =D
__________________
Nobody doing nothing |
|
|
|
|
|
#16 (permalink) |
|
rocks your socks.
Resident.
Joined in Mar 2004
Lives in fear of Obama.
Hosted on Pass 7
13,170 posts
Gave thanks: 8
Thanked 35 times
|
Yeah, I just found it a moment ago. http://www.xeons.net/genesis/
It explains why that same password was popping up when I would mangle things, and couldn't figure out what it was. |
|
|
|
|
|
#17 (permalink) | |
|
Surpass Fan
Super #1
Joined in Aug 2004
Hosted on SH58
1,688 posts
Gave thanks: 6
Thanked 7 times
|
Quote:
http://md5.rednoize.com/
__________________
- Evan Charlton | [site] | Server - SH58 |
|
|
|
|