PHP Tutorial - 29 - Checking Username for Game
Top Comments
All Comments (41)
-
@Ric0tjuh24 you have three parentheses, that makes no sense. It goes
if ( !eregi ( "[^A-Za-z0-9]", $test ) )
-
btw correct if statement is: if(!eregi("[^A-Za-z0-9]",$test
) ... boston fails to nest his ( and ) right -
@Zombiedevice he's refering to his like 10th php vid where he had uporn in his history lol
-
NOOO for the 10th time, your source code is NOT on the site! shame
-
This function has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged.
-
@SnijdersMax Thank you so much again
-
It took me a long time to figure that out, so i figured i'd just share it here
-
This is becuase eregi() is deprecated in newer versions of PHP, so it's wiser to use the function preg_match because that one will stay around longer...in other words, if you upgrade your php version, eregi() won't work anymore. If you want your php scripts to be flexible and not crash after you updated php, this is the way to go
-
@SnijdersMax can you please explain me why ^^
thank you very much!
-
Hey. Just wanna say that I think that your code segment is incorrect. The one that checks if the username is alphanumeric.
LOL! "I don't have any thing embarrassing in my history do I?"
Someone has a guilty mind. :).
Zombiedevice 2 years ago 52
oo didn't know you had these tutorials, im going to start from 1 :) btw your tutorials are awesome, you make a complete idiot seem somewhat smart :D
gorion79 3 years ago 13