|  | Posted by Marco J.L on 04/06/05 22:58 
Hello,
 how can I change the lenght of an value in basuc it's called LEFT or RIGHT
 and MID . I read the filenames but I want to strip the extension from the
 filename.
 
 ======== SCRIPT ==============
 <table style="font-family: tahoma,helvetica,arial; font-size: 12px;
 font-weight: bold; color: #000000">
 <?php
 $handle=opendir('news');
 while (false!==($file = readdir($handle))) {
 if ($file != "." && $file != "..") {
 echo "\n<TR><TD>$file\n";
 }
 }
 closedir($handle);
 ?>
 
 </body>
 </html>
 =======RESULT ========
 200503290000.txt
 200503300000.txt
 200503310000.txt
 200504010000.txt
 
 =======But I want this result : ======
 200503290000
 200503300000
 200503310000
 200504010000
 
 ===================
 Thanx,
 
 Marco J.L.
  Navigation: [Reply to this message] |