i have a script that use to work but now it needs to be change to use the new video tag of html5
i tried replacing the marked(starting at line 16 ending at line 30) code with
if(isset($_POST['Submit'])) {
$showForm = 0;
?>
[s][i][b]
<PARAM NAME="movie" VALUE="<?php echo $path.'/'.$_POST['file']; ?>">
<EMBED TYPE="application/x-mplayer2"
SRC="<?php echo $path.'/'.$_POST['file']; ?>"
NAME="MediaPlayer"
WIDTH=320
HEIGHT=42>
</EMBED>
</OBJECT>[/b][/i][/s]
<?php
}
if ($showForm == 1) {
//using the opendir function
$dir_handle = @opendir($path) or die("Unable to open $path");
echo 'Directory Listing of $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]