The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
eregi vs strpos
PHP Code:
PHP Code:
|
#2
|
|||
|
|||
If the e-mail address breaks one of the 255-character boundaries, it won't work. You're also checking case-sensitively.
PHP Code:
|
#3
|
||||
|
||||
hmmm, with your code, it's just ignoring the conditional
that's what i don't get the code for the eregi shows a true result yet i change it to strpos and it don't work. actually that might've been human error |
#4
|
||||
|
||||
Quote:
Quote:
PHP Code:
But as filburt1 already said, you should user stripos() if available to avoing casing issues. |
#5
|
||||
|
||||
it's giving me errors
Warning: file_get_contents() expects parameter 1 to be string PHP Code:
Quote:
|
#6
|
||||
|
||||
Yeah, it's totally confusing.
I think most other programming languages implement strpos(searchstring, string) |
#7
|
|||
|
|||
Yes, it's done logically given that the string to manipulate comes first, and then the arguments for manipulating that string. The arguments are named that way just for clarity, not for matching the phrase.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|