Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/12/2003, 08:19
erfon2
 
Fecha de Ingreso: diciembre-2003
Mensajes: 52
Antigüedad: 20 años, 3 meses
Puntos: 0
Por favor ayudenme aqui...!

El caso es que estoy haciendo una web en PHP.
He hecho todos los sistemas de usuarios y todo, pero he cogido un sistema de noticias de kike sin sql.
--->Aqui va el codigo de index.php

Código PHP:
<html>
<head>
<title>Noticias PHP ...by Kike</title>
<link rel="stylesheet" type="text/css" href="estilo.css">
</head>
<body>
<?
    
// Noticias PHP ...by kike

    
include("config.php");

    
$Base file($FicheroBase);
    
$Orden array_reverse($Base);

    if(empty(
$paginado)) {
        
$paginado 0;
    }

    
$Mostrar $paginado $LimiteNoticias;

    for (
$i $paginado$i count($Orden) AND $i $Mostrar$i++) {
        
$dato explode("|@|"$Orden[$i]);

     
$nombre $dato[1];
     
$email $dato[2];
    
$titulo $dato[3];
    
$contenido $dato[4];
    
$fecha $dato[5];
    
    include(
"noticias.html");
    }

    
// Paginacion de noticias

    
function Paginacion() {
    global 
$LimiteNoticias$Base;

    if(
$LimiteNoticias count($Base)) {

    
$Paginas count($Base) / $LimiteNoticias;

    echo 
"<b>Historial de noticias : </b>";

    for(
$i 0$i $Paginas$i++) {
    echo 
"<a href=index.php?paginado="$i $LimiteNoticias .">". ( $i ) ."</a> \n";
    }
    return;
    }
    }
?>

  <table cellpadding="5" cellspacing="1" width="400" align="center">
  <tr>
  <td class="normal">
  <? Paginacion(); ?>
  </td>
  </tr>
  </table>
</body>
</html>
Ahora bien, lo llamo desde la pagina principal asi:

Código PHP:
<?php
 
if (!isset($page)) { $page ="noticias/index.php"; } include_once ("$page"); 
?>
Y cuando ejecuto la pagina me sale este error:

Warning: array_reverse(): The argument should be an array in /home/vhosts/supervista.redservicio.com/noticias/index.php on line 13
Warning: Division by zero in /home/vhosts/supervista.redservicio.com/noticias/index.php on line 40


Les agradecderia que me ayudaran por que me esta dando muchos quebraderos de cabeza

Salu2 y gracias