filemtime 2

From: Date: Wed, 06 Sep 2000 12:12:00 +0000
Subject: filemtime 2
Groups: php.windows 
Request: Send a blank email to php-windows+get-2455@lists.php.net to get a copy of this message
I add the script (that still doesn't work): <?php clearstatcache(); $directory=dir("c:/winnt"); while ($file = readdir($directory->handle)) { $elenco[]="<tr><td>&middot;&nbsp;<a href=\"".$file."\">".substr($file,0,(strlen($file)-4))."</a></td><td>".strft ime("%d-%m&nbsp;&nbsp;%H.%M",filemtime($file))."</td></tr>"; } closedir($directory->handle); header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); header("Cache-Control: no-cache, must-revalidate"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Arrivi e Quote</title> </head> <body> <p>&nbsp;&nbsp;&nbsp;Arrivi e Quote</p> <table summary="lista" cellpadding="5" width="80%"> <tr><td></td><td>Ultimo Aggiornamento</td></tr> <?php if (isset($elenco)) while (list($nriga,$riga)=each($elenco)) { echo ($riga."\n"); } else echo("<tr><td></td><td>Non ci sono documenti</td></tr>"); ?> </table> </body> </html>

« previous php.windows (#2455) next »