Eregi Error

Discussion in 'PHP' started by Pathan, Dec 9, 2012.

  1. #1
    Hi,

    I can see the following error messages logged:

    Deprecated: Function eregi_replace() is deprecated in /home/jony/public_html/plugins/comments/functions.php on line 206

    on line 206 we have the following code:

    $comment['comment'] = eregi_replace($nasty, "****", $comment['comment']);  
    PHP:
    We have PHP version 5.3.18 running on server.

    -With Regards.
     
    Solved! View solution.
    Pathan, Dec 9, 2012 IP
  2. #2
    eregi_replace() function is deprecated and should not be used anymore.

    you might wanna change that into something similar like:

    
    $comment['comment'] = str_replace($nasty, "****", $comment['comment']);
    
    PHP:
     
    firman01, Dec 9, 2012 IP
    ROOFIS likes this.