quickjob. $5

Discussion in 'Programming' started by sjsjsj215, Oct 19, 2008.

  1. #1
    sjsjsj215, Oct 19, 2008 IP
  2. Bronto

    Bronto Peon

    Messages:
    308
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    <?php
    
    if (isset($_GET{'url'})){
    
    $url=$_GET{'url'};
    
    $url=trim($url);
    
    }
    
    if (strstr($_GET['url'],"youtube.com")){
    
     $data = @file_get_contents($_GET['url']);
    
     @preg_match('#/watch_fullscreen\?video_id=([a-z0-9-_]+)&l=([0-9]+)&t=([a-z0-9-_]+)#i', $data, $matches);
    
     if (@ereg($matches[1], $_GET['url'])) {
    
      Header("Location: http://www.youtube.com/get_video?video_id=$matches[1]&l=$matches[2]&t=$matches[3]");
    
     } 
    
    }
    
    ?>
    PHP:


    You miss 1 "}" .
     
    Bronto, Oct 19, 2008 IP
  3. serialCoder

    serialCoder Guest

    Best Answers:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    is this already resolved?
     
    serialCoder, Oct 19, 2008 IP
  4. sjsjsj215

    sjsjsj215 Well-Known Member

    Messages:
    1,067
    Likes Received:
    57
    Best Answers:
    0
    Trophy Points:
    150
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    i have hired somebody. thanks guys.
    he is working. i will post if i require.
     
    sjsjsj215, Oct 19, 2008 IP