Ver Mensaje Individual
  #7 (permalink)  
Antiguo 23/12/2003, 12:39
Volrath
 
Fecha de Ingreso: septiembre-2003
Ubicación: Pirexia
Mensajes: 150
Antigüedad: 20 años, 6 meses
Puntos: 1
Ok,

probe con lo ke me dijiste, y en el formulario no me servia, asi ke cree otro archivo de prueba asi:

Código PHP:
<?
$comment 
"
[ code ]<?
strtoupper('Fire-Project.com');
?>[ /code ]
"
;

$comment htmlspecialchars($comment);
$comment ereg_replace('\[code\](.*)\[/code\]',"<table width=95% cellspacing=0 cellpadding=0 border=0 bgcolor=e2e2e2 align=center><tr><td>".highlight_string("<? \\\\1 ?>",true)."</td></tr></table>",$comment);
$comment nl2br($comment);

echo 
$comment;
?>
y ahora me crea la tabla, pero dentro d la tabla sale este error en azul:

Código PHP:
<? 

Warning
Unexpected character in input' \\ ' (ASCII=92state=1 in c:appservwwwtestprueba.php on line 11

1 ?>
se me ocurre algo, pero no se si se pueda: es posible sacar a " \\1 " y tratarlo como una variable para poder acomodarlo y que no se vea afectado por el htmlspecialchars que esta arriba?
__________________
In a world without walls, who needs Windows?

Última edición por Volrath; 23/12/2003 a las 12:42