[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Google
  Web www.spinics.net

opendir() .. Help please!!!




How can I open a sub-directory with this example?
 

----------------------------------------------------------------------------------------
# Abre o diretório
$handle=opendir("./");

# Ignorar nivel aicma e dois niveis acima
$projectsListIgnore = array ('.','..');

while ($file = readdir($handle)) 
{
    if (is_dir($file) && !in_array($file,$projectsListIgnore)) 
    {        
        $projectContents .= '<li><a href="javascript:void(0)">'.$file.'</a></li>';
    }
}
closedir($handle);
if (!isset($projectContents))
    $projectContents = $langues[$langue]['txtNoProjet'];

----------------------------------------------------------------------------------------

I've tried using all variations "./modules" but I can not.












 

Att,
 
Miguel Machado
Software Engineer
UIC INR003-M09

    
www.innovareti.com.br | sac@xxxxxxxxxxxxxxxxx

     




 		 	   		  
_________________________________________________________________
Quer deixar seus vídeos mais divertidos? Com o Movie Maker isso fica fácil.
http://www.windowslive.com.br/public/tip.aspx/view/87?product=4&ocid=Windows Live:Dicas - Movie Maker:Hotmail:Tagline:1x1:Titulo Legendas Creditos

[Non-text portions of this message have been removed]


[PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux