+ Responder ao Tópico



  1. #1
    Under-linux.Org Team Avatar de MarcusMaciel
    Ingresso
    Dec 2000
    Localização
    Boston
    Posts
    1.969
    Posts de Blog
    44

    Padrão teste do vbet

    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. #2
    Under-linux.Org Team Avatar de MarcusMaciel
    Ingresso
    Dec 2000
    Localização
    Boston
    Posts
    1.969
    Posts de Blog
    44

    Padrão Re: teste do vbet


    <?
    $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. #3
    Under-linux.Org Team Avatar de MarcusMaciel
    Ingresso
    Dec 2000
    Localização
    Boston
    Posts
    1.969
    Posts de Blog
    44

    Padrão Re: teste do vbet

    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>");
    }
    ?>