Ver Mensaje Individual
  #18 (permalink)  
Antiguo 19/06/2002, 07:23
^_CloViS_^
 
Fecha de Ingreso: mayo-2002
Mensajes: 115
Antigüedad: 21 años, 11 meses
Puntos: 0
Re: sistema de noticias

Otra cosa, he procedido a hacer la pagina donde se muestren las noticias, y he hecho lo siguiente:
<?
$filename = "noticias.txt";
$registro = $registro = $titulo."[s]".$contenido."[s]".$autor."[s]";
$fp = fopen($filename,"r");
$extraer = explode("[s]",$filename[3]);
$cerrar = fclose($fp);

echo "<html><head>\n";
echo "<title>Noticias</title></head>\n";
echo "<body topmargin='0' leftmargin='0'>\n";
echo "<div align='left'>\n";
echo "<table border='1' cellpadding='2' cellspacing='0' style='border-collapse: collapse' bordercolor='$borde_tabla_layout' width='780' height='300'>\n";
echo "<tr>\n";
echo "<td width='800'><u>Titulo</u>: $extraer</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td width='800'><u>contenido</u> :$extraer</td>\n";
echo "<tr>\n";
echo "<td width='800'><u>Por</u>: $extraer</td>\n";
echo "<tr>\n";
echo "</table>\n";
echo "</body></html>"
?>

Entonces cuando abres la pagina, que he llamado explode.php, te queda así:
titulo: Array
contenido: Array
Por: Array
¿por que me sale Array ?¿que hago mal?