Skip to main content
inserir video
Fonte Link
alexjosesilva
  • 3,2mil
  • 11
  • 56
  • 96

Correção do arquivo busca.php

 <?php
    //Arquivo para buscar video dentro do explorer
    $video = $_POST['buscar'];

    $endereco = "C:/xampp/htdocs/www/";
    
    
    $iterator = new DirectoryIterator($endereco);
 
    foreach ( $iterator as $entry ) {
        
        if( ($entry->getFilename()) == $video){
            echo $entry->getFilename()," "; 
            $link = $entry->getFilename(); 
            echo "<a href='$link' target='_blank'>".$entry->getFilename()."</a>";
            echo "<br>";
        }
        
    }
    
    
?>


<video width="320" height="240" controls>
  <source src='<?php echo $link; ?>' type="video/mp4">
</video>

exibicao de video

Correção do arquivo busca.php

 <?php
    //Arquivo para buscar video dentro do explorer
    $video = $_POST['buscar'];

    $endereco = "C:/xampp/htdocs/www/";
    
    
    $iterator = new DirectoryIterator($endereco);
 
    foreach ( $iterator as $entry ) {
        
        if( ($entry->getFilename()) == $video){
            echo $entry->getFilename()," "; 
            $link = $entry->getFilename(); 
            echo "<a href='$link' target='_blank'>".$entry->getFilename()."</a>";
            echo "<br>";
        }
        
    }
    
    
?>


<video width="320" height="240" controls>
  <source src='<?php echo $link; ?>' type="video/mp4">
</video>

Correção do arquivo busca.php

 <?php
    //Arquivo para buscar video dentro do explorer
    $video = $_POST['buscar'];

    $endereco = "C:/xampp/htdocs/www/";
    
    
    $iterator = new DirectoryIterator($endereco);
 
    foreach ( $iterator as $entry ) {
        
        if( ($entry->getFilename()) == $video){
            echo $entry->getFilename()," "; 
            $link = $entry->getFilename(); 
            echo "<a href='$link' target='_blank'>".$entry->getFilename()."</a>";
            echo "<br>";
        }
        
    }
    
    
?>


<video width="320" height="240" controls>
  <source src='<?php echo $link; ?>' type="video/mp4">
</video>

exibicao de video

Fonte Link
alexjosesilva
  • 3,2mil
  • 11
  • 56
  • 96

Correção do arquivo busca.php

 <?php
    //Arquivo para buscar video dentro do explorer
    $video = $_POST['buscar'];

    $endereco = "C:/xampp/htdocs/www/";
    
    
    $iterator = new DirectoryIterator($endereco);
 
    foreach ( $iterator as $entry ) {
        
        if( ($entry->getFilename()) == $video){
            echo $entry->getFilename()," "; 
            $link = $entry->getFilename(); 
            echo "<a href='$link' target='_blank'>".$entry->getFilename()."</a>";
            echo "<br>";
        }
        
    }
    
    
?>


<video width="320" height="240" controls>
  <source src='<?php echo $link; ?>' type="video/mp4">
</video>