|
Answer» O.K., I'm trying to use the meta tag to forward to a video file, OPEN it and start playing, but I'm having trouble. You know in a href tags there is the type="video/x-ms-wmv"? What can a substitute to use in the tag?
P.S., It's required. Otherwise the computer OPENS a text file.
Code: [Select]<? include("../rdcounter/includes/config.php"); $url = $_GET['url']; if($url){ $link = mysql_escape_string($url);
if (file_exists($link)) { $check = mysql_query("SELECT * FROM ".TBL_DL." where name = '$link'"); $exists = mysql_num_rows($check); if($exists == 1){ $update = mysql_query("SELECT * FROM ".TBL_DL." where name = '$link'"); while($myrow = mysql_fetch_assoc($update)){ $downloads = $myrow[downloads];
} $total = $downloads + 1; $update = mysql_query("UPDATE ".TBL_DL." SET downloads = $total where name = '$link'"); echo('<meta http-equiv="Refresh" content="0; URL='.$link.'">'); }else{ $add = mysql_query("INSERT INTO ".TBL_DL." VALUES ('','$link', '1')"); echo('<meta http-equiv="Refresh" content="0; URL='.$link.'">'); } } else { echo "error: '$link' not found"; } }else{ echo("No url specified"); } ?>Ant meta tag are only for LISTING contents of your website so the search engine can find your site. best way to get your video file playing is http://www.boutell.com/newfaq/creating/video.html
|