1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Eregi Error

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

  1. #1
    Hi,

    I can see the following error messages logged:
    SEMrush
    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
    SEMrush
  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.