Foros del Web » Programando para Internet » PHP »

Porque sale este error ' '

Estas en el tema de Porque sale este error ' ' en el foro de PHP en Foros del Web. Porque me sale este error Warning: Unknown modifier ' ' in /usr/home/chesteral/public_html/simplenews/includes/functions.php on line 57 Código PHP: <?PHP /************************************************************************ Function:    emoticons Updated:        06/02/2003 Action:         1. Parses text string and replaces some text with images Notes:         To Do:          Nothing ************************************************************************/ ...
  #1 (permalink)  
Antiguo 25/08/2003, 18:34
Avatar de Gerald  
Fecha de Ingreso: julio-2003
Mensajes: 1.356
Antigüedad: 20 años, 9 meses
Puntos: 2
Porque sale este error ' '

Porque me sale este error

Warning: Unknown modifier ' ' in /usr/home/chesteral/public_html/simplenews/includes/functions.php on line 57


Código PHP:
<?PHP
/************************************************************************
Function:    emoticons
Updated:        06/02/2003
Action:         1. Parses text string and replaces some text with images
Notes:        
To Do:          Nothing
************************************************************************/
function emoticons($text) {

    
$search    array_keys($GLOBALS['smiles']);
    
$text    str_replace($search$GLOBALS['smiles'], $text);
    return 
$text;
    
}

/************************************************************************
Function:    strip_html
Updated:        07/09/2003
Action:         1. Replaces HTML brackets (<>) with the & code.
Notes:        
To Do:          Nothing
************************************************************************/
function strip_html($text) {

    
$search    array_keys($GLOBALS['strip_html']);
    
$text    str_replace($search$GLOBALS['strip_html'], $text);
    return 
$text;
    
}

/************************************************************************
Function:        word_filter
Updated:        07/29/2003
Action            1. Replaces any word placed in words.txt with #$@&!.
Notes:        
To Do:          Nothing
************************************************************************/

function word_filter($text) {

    
$filename "simplenews/includes/badwords.txt"
    
$fp fopen($filename'r'); 
    
    if (
$fp) { 

        
$badwords explode("\n"fread($fpfilesize($filename))); 
    
    }

    
$query "SELECT filter_replace FROM news_settings";
    
$result mysql_query($query);
    
    
$data mysql_fetch_assoc($result);
    
$filter_replace $data['filter_replace'];

    
$text preg_replace($badwords$filter_replace$text); /********esta es la linea 57**********/
    
    
return $text;

}
?>
que debo modificar o hacer
__________________
Solo por Hoy: Trataré de fortalecer mi mente. Estudiaré y aprenderé algo útil
Hoteldipity
Arte Caracol

Última edición por Gerald; 26/08/2003 a las 14:20
  #2 (permalink)  
Antiguo 26/08/2003, 14:01
Avatar de Gerald  
Fecha de Ingreso: julio-2003
Mensajes: 1.356
Antigüedad: 20 años, 9 meses
Puntos: 2
nuevo manoloweb

hey nuevo, manoloweb una ayudita por favor!!!
__________________
Solo por Hoy: Trataré de fortalecer mi mente. Estudiaré y aprenderé algo útil
Hoteldipity
Arte Caracol
  #3 (permalink)  
Antiguo 27/08/2003, 12:08
Avatar de Gerald  
Fecha de Ingreso: julio-2003
Mensajes: 1.356
Antigüedad: 20 años, 9 meses
Puntos: 2
ayudaaaaa

una ayudadita amigos phperos jejeje
__________________
Solo por Hoy: Trataré de fortalecer mi mente. Estudiaré y aprenderé algo útil
Hoteldipity
Arte Caracol
  #4 (permalink)  
Antiguo 27/08/2003, 12:28
Avatar de Chuty  
Fecha de Ingreso: noviembre-2002
Ubicación: el bar de la esquina
Mensajes: 609
Antigüedad: 21 años, 5 meses
Puntos: 2
la linea anterior esta bien ....

$filter_replace = $data['filter_replace'];
o seria

$filter_replace = $data[$filter_replace];
  #5 (permalink)  
Antiguo 27/08/2003, 12:34
Avatar de Gerald  
Fecha de Ingreso: julio-2003
Mensajes: 1.356
Antigüedad: 20 años, 9 meses
Puntos: 2
a ver voy a probar , y gracias eres el unico que me hizo caso aunque espero que todos ayuden !!! gracias amigos phperos
__________________
Solo por Hoy: Trataré de fortalecer mi mente. Estudiaré y aprenderé algo útil
Hoteldipity
Arte Caracol
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 22:36.