- Impact
- 24
I'm passing the string:
?filename=MovieName.wmv or MovieName.mp4
and I need the script to display a div with the corresponding media player based on the file extension.
Here's the basic structure:
<?php
// Movie Player
// Read movie name from URL
$$filename = $_GET['$filename'];
if ($filename != '') :
?>
<html>
<body>
*/ if filetype = .wmv display this div
<div id="windows_media">
*/ if filetype = .mp4 display this div
<div id="quicktime">
</body>
</html>
<?php endif; ?>
From here, I'm stumped. Any help is greatly appreciated!
?filename=MovieName.wmv or MovieName.mp4
and I need the script to display a div with the corresponding media player based on the file extension.
Here's the basic structure:
<?php
// Movie Player
// Read movie name from URL
$$filename = $_GET['$filename'];
if ($filename != '') :
?>
<html>
<body>
*/ if filetype = .wmv display this div
<div id="windows_media">
*/ if filetype = .mp4 display this div
<div id="quicktime">
</body>
</html>
<?php endif; ?>
From here, I'm stumped. Any help is greatly appreciated!