This question already has an answer here:
I am working with SEO PHP scripts and I am just following Google SEO scripts. When I used the search terms I got an error like the following:
Deprecated: Function eregi() is deprecated in E:\wamp\www\subgoogle\nusoap.php on line 3876
Deprecated: Function ereg() is deprecated in E:\wamp\www\subgoogle\nusoap.php on line 3896
Deprecated: Function ereg() is deprecated in E:\wamp\www\subgoogle\nusoap.php on line 1451
How should I remove that error function? Is there any need to use a library?
eregi() function has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged.
you can use preg_match().
error_reporting( 0 ) ;
That's how you can eliminate the symptoms, but to cure the disease you just shouldn't use POSIX regular expressions, change them to PCRE
Change
ereg()
tomb_ereg.hope
which fixes your error. Good luck!http://php.net/manual/en/function.eregi.php
You need to convert every use of
ereg*
to an equivalent function of thepreg_*
family. Or, as @Srisa rightly points out, look for an updated version of the library/script in question.you may want to check this brunch http://sourceforge.net/projects/nusoapforphp53/ it works for me