Location: PHPKode > projects > Daddy's File Host > dfh/total.php
<?php
/////////////////////////////////////////////////////////////////////////
//  Product: Daddy's File Host						 //
//  Version: 1.0								 //
//										 //
// by DaddyScripts.com							 //
//										 //
// original source code by Jim (j-fx.ws) and Steven (galaxyscripts.com)//
/////////////////////////////////////////////////////////////////////////

    $files
    = Array();
   
    //specify the directory
    @$handle = opendir("./files/"); while (
   false !== (@$file = readdir($handle))) {     if (
    $file != "." && $file != "..") {         
   $files[] = $file;     }
   }
   @
   closedir($handle);
   $top = count($files);
 
$total=  $top - 1;
      ?> 
Return current item: Daddy's File Host