video thumbnails

hello all i am very new to php and am stumbling throught the learning
i have a script that list all video files into a drop down menu
what i would like to do is have the script extract thumbnails to make a menu from the thumbnails
here is the script that i use :
can this be done or am i in over my head
thanks

[php]

HOME VIDEO’S

<?php
$path = "./moviefiles";
$showForm = 1;

if(isset($_POST['Submit'])) {

$showForm = 0;

?>

<-- --> <?php } if ($showForm == 1) { //using the opendir function $dir_handle = @opendir($path) or die("Unable to open $path"); echo ''; //running the while loop echo ''; while ($file = readdir($dir_handle)) { if($file!="." && $file!="..") echo '' . $file . ''; } echo ''; //closing the directory closedir($dir_handle); echo ''; echo ''; } ?>
</body>
</html>[/php]

What is happening with it currently? Does it not work? What does it do?

the current script only reads the directory and makes a drop down menu

Have you researched into how to embed video into an html page?

when you click on the submit button it opens the video in a frame what i want to do is replace the names with thumbnails
here is an example of the script working
http://68.172.221.78:8080/metal/movies/
what i would want is thumbnails in stead of the drop down menu

Okay, so remove the portion and make them image tags in an unordered list.

The thumbnails would need to be images, not the MP4’s you have.

Sponsor our Newsletter | Privacy Policy | Terms of Service