how can i Hide link though php

Discussion in 'PHP' started by romeo2010, Mar 10, 2008.

  1. #1
    romeo2010, Mar 10, 2008 IP
  2. Ares

    Ares Member

    Messages:
    47
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    45
    #2
    in file.php get the real address from db and then add header for flash :
    
     header("Content-Type: video/x-flv");
    
    PHP:
    then all you have to do is print the real address , ok let me give you the code,all the code would be something like this :
    
    $file="www.domain.com/video/22.flv";
    header("Content-Type: video/x-flv");
    header('Content-Length: ' . filesize($file));
    @readfile($file);
    }
    
    PHP:
    that's it [​IMG]
     
    Ares, Mar 10, 2008 IP
  3. proxywhereabouts

    proxywhereabouts Notable Member

    Messages:
    4,027
    Likes Received:
    110
    Best Answers:
    0
    Trophy Points:
    200
    #3
    Why don't you make use of custom rewrite rules?
     
    proxywhereabouts, Mar 10, 2008 IP
  4. romeo2010

    romeo2010 Peon

    Messages:
    183
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4


    i dont' really get what u saying...


    its using the same file.php

    for multi file from multi external links
    and any type of media file


    basically i want to give the flv url through webadresss

    http://domain.com/tube/play.php?id=56


    then on that play the flash player should read this
    flv="http://domain.com/tube/file.php?id=56"


    now if somoene click on "download"
    it should go to
    http://domain.com/tube/dl.php?id=56
    and force the download

    whats the coding for file.php
    and whats the coding for dl.php
     
    romeo2010, Mar 10, 2008 IP