+ Responder ao Tópico



  1. este e um exemplo

    Código :
    <?
    $diary_directory  = opendir(".");
      while($filename = readdir($diary_directory))
     {
        $filesplit  = explode(".", $filename);
        $check_filename = $filesplit[0];
           if(ereg("[0-9]{6}", $check_filename))
          {
             $check_filename  .= ".$filesplit[1]";
             $valid_filename[] = $check_filename;
          }
      }
    closedir($diary_directory);
    for($index = 0; $index < count($valid_filename); $index++)
    {
      print("$valid_filename[$index]<br>");
    }
    $diary_directory  = opendir(".");
      while($filename = readdir($diary_directory))
     {
        $filesplit  = explode(".", $filename);
        $check_filename = $filesplit[0];
           if(ereg("[0-9]{6}", $check_filename))
          {
             $check_filename  .= ".$filesplit[1]";
             $valid_filename[] = $check_filename;
          }
      }
    closedir($diary_directory);
    for($index = 0; $index < count($valid_filename); $index++)
    {
      print("$valid_filename[$index]<br>");
    }
    $diary_directory  = opendir(".");
      while($filename = readdir($diary_directory))
     {
        $filesplit  = explode(".", $filename);
        $check_filename = $filesplit[0];
           if(ereg("[0-9]{6}", $check_filename))
          {
             $check_filename  .= ".$filesplit[1]";
             $valid_filename[] = $check_filename;
          }
      }
    closedir($diary_directory);
    for($index = 0; $index < count($valid_filename); $index++)
    {
      print("$valid_filename[$index]<br>");
    }
    $diary_directory  = opendir(".");
      while($filename = readdir($diary_directory))
     {
        $filesplit  = explode(".", $filename);
        $check_filename = $filesplit[0];
           if(ereg("[0-9]{6}", $check_filename))
          {
             $check_filename  .= ".$filesplit[1]";
             $valid_filename[] = $check_filename;
          }
      }
    closedir($diary_directory);
    for($index = 0; $index < count($valid_filename); $index++)
    {
      print("$valid_filename[$index]<br>");
    }
    ?>


  2. <?
    $diary_directory = opendir(".");
    while($filename = readdir($diary_directory))
    {
    $filesplit = explode(".", $filename);
    $check_filename = $filesplit[0];
    if(ereg("[0-9]{6}", $check_filename))
    {
    $check_filename .= ".$filesplit[1]";
    $valid_filename[] = $check_filename;
    }
    }
    closedir($diary_directory);
    for($index = 0; $index < count($valid_filename); $index++)
    {
    print("$valid_filename[$index]<br>");
    }
    $diary_directory = opendir(".");
    while($filename = readdir($diary_directory))
    {
    $filesplit = explode(".", $filename);
    $check_filename = $filesplit[0];
    if(ereg("[0-9]{6}", $check_filename))
    {
    $check_filename .= ".$filesplit[1]";
    $valid_filename[] = $check_filename;
    }
    }
    closedir($diary_directory);
    for($index = 0; $index < count($valid_filename); $index++)
    {
    print("$valid_filename[$index]<br>");
    }
    $diary_directory = opendir(".");
    while($filename = readdir($diary_directory))
    {
    $filesplit = explode(".", $filename);
    $check_filename = $filesplit[0];
    if(ereg("[0-9]{6}", $check_filename))
    {
    $check_filename .= ".$filesplit[1]";
    $valid_filename[] = $check_filename;
    }
    }
    closedir($diary_directory);
    for($index = 0; $index < count($valid_filename); $index++)
    {
    print("$valid_filename[$index]<br>");
    }
    $diary_directory = opendir(".");
    while($filename = readdir($diary_directory))
    {
    $filesplit = explode(".", $filename);
    $check_filename = $filesplit[0];
    if(ereg("[0-9]{6}", $check_filename))
    {
    $check_filename .= ".$filesplit[1]";
    $valid_filename[] = $check_filename;
    }
    }
    closedir($diary_directory);
    for($index = 0; $index < count($valid_filename); $index++)
    {
    print("$valid_filename[$index]<br>");
    }
    ?>




  3. Código PHP:
    <?
    $diary_directory  
    opendir(".");
      while(
    $filename readdir($diary_directory))
     {
        
    $filesplit  explode("."$filename);
        
    $check_filename $filesplit[0];
           if(
    ereg("[0-9]{6}"$check_filename))
          {
             
    $check_filename  .= ".$filesplit[1]";
             
    $valid_filename[] = $check_filename;
          }
      }
    closedir($diary_directory);
    for(
    $index 0$index count($valid_filename); $index++)
    {
      print(
    "$valid_filename[$index]<br>");
    }
    $diary_directory  opendir(".");
      while(
    $filename readdir($diary_directory))
     {
        
    $filesplit  explode("."$filename);
        
    $check_filename $filesplit[0];
           if(
    ereg("[0-9]{6}"$check_filename))
          {
             
    $check_filename  .= ".$filesplit[1]";
             
    $valid_filename[] = $check_filename;
          }
      }
    closedir($diary_directory);
    for(
    $index 0$index count($valid_filename); $index++)
    {
      print(
    "$valid_filename[$index]<br>");
    }
    $diary_directory  opendir(".");
      while(
    $filename readdir($diary_directory))
     {
        
    $filesplit  explode("."$filename);
        
    $check_filename $filesplit[0];
           if(
    ereg("[0-9]{6}"$check_filename))
          {
             
    $check_filename  .= ".$filesplit[1]";
             
    $valid_filename[] = $check_filename;
          }
      }
    closedir($diary_directory);
    for(
    $index 0$index count($valid_filename); $index++)
    {
      print(
    "$valid_filename[$index]<br>");
    }
    $diary_directory  opendir(".");
      while(
    $filename readdir($diary_directory))
     {
        
    $filesplit  explode("."$filename);
        
    $check_filename $filesplit[0];
           if(
    ereg("[0-9]{6}"$check_filename))
          {
             
    $check_filename  .= ".$filesplit[1]";
             
    $valid_filename[] = $check_filename;
          }
      }
    closedir($diary_directory);
    for(
    $index 0$index count($valid_filename); $index++)
    {
      print(
    "$valid_filename[$index]<br>");
    }
    ?>






Tópicos Similares

  1. Respostas: 35
    Último Post: 25-03-2009, 18:23
  2. Teste do Buffer nas ETH dos Wireless
    Por Pirigoso no fórum Redes
    Respostas: 3
    Último Post: 17-08-2005, 13:30
  3. erro no teste do apache
    Por muganga no fórum Servidores de Rede
    Respostas: 4
    Último Post: 28-10-2004, 14:54
  4. Teste do qmail
    Por ozzymaia no fórum Servidores de Rede
    Respostas: 10
    Último Post: 23-01-2004, 12:06
  5. Respostas: 0
    Último Post: 02-11-2003, 17:26

Visite: BR-Linux ·  VivaOLinux ·  Dicas-L