Ver Mensaje Individual
  #16 (permalink)  
Antiguo 06/03/2005, 20:45
Avatar de xyyy7
xyyy7
 
Fecha de Ingreso: enero-2004
Ubicación: Maracay.-
Mensajes: 637
Antigüedad: 20 años, 3 meses
Puntos: 5
Cita:
<?php
$fichero = fopen("texto.txt", "r");
$aImg=array();
while (!feof($fichero)) {
$linea = fgets($fichero);
$aLinea=explode("|",$linea);
$pathImg=trim($aLinea[0]);
$numVisitas=trim($aLinea[1]);
$aImg[$pathImg]=$numVisitas;
}
fclose($fichero);
arsort($aImg,SORT_NUMERIC);
$imagen = each ($aImg);
echo "el path de la imagen mas visitada es ".$imagen["key"]." y ha sido visitada ".$imagen["value"]." veces";

?>
AMIGO AunQUE A LA FINAL COMENCE CON TU CODIGO LA CUAL ME DIO MUCHO RESULTADO.. Y LUEGO ME CAMBIE A SQL. LA VERDAD MUCHO MAS EFECTIVO.. AHORA EL QUE TU PROPORCIONASTE AHI.. SE LO DOY A LOS MUCHACHOS DE MI SALA aprendices igual que yo! PARA QUE LOS USEN

gracias!
__________________
Maracay Edo Aragua - Venezuela :
Mi Favorita :
http://www.MySQL.Com

Última edición por xyyy7; 06/03/2005 a las 20:47