View Single Post
Old 11-28-2008, 06:14 AM   #3 (permalink)
Peuplarchie
The Acquainted
 
Peuplarchie's Avatar
 
Join Date: May 2008
Location: Québec
Posts: 104
Thanks: 10
Peuplarchie is on a distinguished road
Default

Thanks but i don't know if it's my function but it don't work :

PHP Code:


function compileList($extensions)
{
     if (
$handle opendir(date('Y/m/d')) {
   while (
false !== ($file readdir($handle)))
      {
          
$ext strtolower(end(explode('.'$file)));
       
          if (
in_array($ext$extensions) AND $file != "." AND $file != "..")
              {
                  
$files[$file]=implode(file($file));
              }
       }
  
closedir($handle);
  }
  
if (empty(
$files))
{

    return 
null;
}
return 
$files;  

it give me an error on line tree..

Parse error: syntax error, unexpected '{'
__________________
That's why we are not alone on earth... let's build !
Peuplarchie is offline  
Reply With Quote