Ver Mensaje Individual
  #5 (permalink)  
Antiguo 01/09/2013, 10:30
Avatar de chel87
chel87
 
Fecha de Ingreso: septiembre-2013
Ubicación: localhost
Mensajes: 6
Antigüedad: 10 años, 8 meses
Puntos: 0
Respuesta: Configurar lista en php

mira lo que tengo echo lo que pasa es que solo se me muestran no mas de 7 archivos si puede acermele el areglito que le falta para que muestre todo las extenciones mp3

Código PHP:
<style type="text/css">
a:link {
    text-decoration: none;
    color: #000000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11.5px;
    font-weight: bold;
} /* Link no visitado*/
a:visited {
    text-decoration: none;
    color: #000000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11.5px;
    font-weight: bold;
} /*Link visitado*/
a:active {
    text-decoration: none;
    color: #FF0000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11.5px;
    font-weight: bold;
} /*Link activo*/
a:hover {
    text-decoration: underline;
    color: #FF0000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11.5px;
    font-weight: bold;
} /*Mause sobre el link*/
ul
{
list-style-type: none;

body h1 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 22px;
    color: #0C3;
    font-weight: normal;
    font-style: italic;
}
</style>
<h1>Lo Ultimo</h1>
<?php
foreach (glob("*.mp3") as $path) { //configure path
    
$docs[filectime($path)] = $path;
asort($docs); // sort by value, preserving keys
foreach ($docs as $timestamp => $path) {
    print 
date("d-m-y - "$timestamp);
    print 
'<a href="'$path .'">'basename($path) .'</a><br />';
}
?>