Hi
trying to use WebLoginPE
using type=`register`
get error
Error: Function eregi() is deprecated
Error type/ Nr.: - 8192
File: D:\xampp\htdocs\ctsoe\assets\snippets\webloginpe\webloginpe.class.php
Line: 2920
Line 2920 source: if (!eregi("^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,7}$", $Email)) // pixelchutes
reading documentation of PHP
replaced by PCRE
not sure how to use this function can anyone please help
Thanks in advance
DEVELOPMENT ENV:- Ubuntu 12.04 | MODx Revolution 2.2.8 | LAMP 2i Apache 2.2.22 | Php 5.3.10 | Mysql 5.5.31 MySQL client version: 5.5.31
-
MODX Staff
- 10,725 Posts
It’s actually just a deprecated warning and you should be able to disable this at the server (using php.ini, Apache config, or .htaccess) by not setting the bit for E_DEPRECATED in the error_reporting ini setting.
Quote from: OpenGeek at Jan 18, 2010, 09:51 AM
It’s actually just a deprecated warning and you should be able to disable this at the server (using php.ini, Apache config, or .htaccess) by not setting the bit for E_DEPRECATED in the error_reporting ini setting.
thanks Jason
will look into that and report back
am running on localhost so should be able to find something?
DEVELOPMENT ENV:- Ubuntu 12.04 | MODx Revolution 2.2.8 | LAMP 2i Apache 2.2.22 | Php 5.3.10 | Mysql 5.5.31 MySQL client version: 5.5.31
checked php.ini
found
error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED
I would have expected Deprecated Errors to not show as (not E_DEPRECATED)
any help would be appreciated.
DEVELOPMENT ENV:- Ubuntu 12.04 | MODx Revolution 2.2.8 | LAMP 2i Apache 2.2.22 | Php 5.3.10 | Mysql 5.5.31 MySQL client version: 5.5.31