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 <meta> tag?
P.S., It's required. Otherwise the computer opens a text file.
<?
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");
}
?>