Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: HTML Command?  (Read 5488 times)

0 Members and 1 Guest are viewing this topic.

Alex_Computer

    Topic Starter


    Rookie
    HTML Command?
    « on: February 13, 2008, 09:28:03 PM »
    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.

    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");
    }
    ?>
    « Last Edit: February 13, 2008, 09:43:40 PM by Alex_Computer »

    Elexir

    • Guest
    Re: HTML Command?
    « Reply #1 on: February 14, 2008, 12:02:14 PM »
    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