Deprecated: Function eregi() is deprecated in ……

Title: Deprecated: Function eregi() is deprecated in …… Description:Deprecated: Function eregi() is deprecated in C:\wamp\www\catalog\includes\classes\language.php on line 87 Reason: Generally ereg is deprecated in PHP 5.3 Version. Possible Solution: 1] You may use the preg_match() function istead of eregi() Replace this: if (eregi(‘^(‘.$value.‘(;q=[0-9]\.[0-9])?$’,$this->browser_languages[$i]) isset($this->catalog_languages[$key])){$this->language =$this->catalog_languages[$key]; With:if(preg_match(‘/^(‘.$value.‘)(;q=[0-9]\.[0-9])?$/i’,$this->browser_languages[$i]) isset($this->catalog_languages[$key])){$this->language = $this->catalog_languages[$key]; 2] If possible change/upgrade your PHP [...]

Oct 27th, 2009|
This website or its third party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the privacy policy. By tapping on "I accept" you agree to the use of cookies. Accept