ereg_*
was marked as obsolete ( deprecated ) in PHP 5.3. To fix this, just switch to preg_match . For example:
ereg("^[a-zA-Z0-9\-_]{3,20}$", $nombre_usuario)
Switch By:
if (preg_match("/^[a-zA-Z0-9\-_]{3,20}$/", $nombre_usuario)){
----------^ ^-----------
inicio do delimitador fim do delimitador
To correct your code you need to change the ereg in the functions:
ValidaMail ()
shout ()
uc ()
Basically what changes are you forced to put your regex between some delemiter, in case it was /
. Another point is that ereg
is based on the Unix regex while preg_*
is in Perl (see PCRE modifiers ).