Youtube link cheacker

Discussion in 'PHP' started by dnsman, Jun 13, 2010.

  1. #1
    Hello guys i need small script with php, for checking for valid youtube video link;
    if valid -> echo ok
    else
    echo not valid
    Very thnk :rolleyes:
     
    dnsman, Jun 13, 2010 IP
  2. Scripts man

    Scripts man Guest

    Messages:
    51
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    just use file get conetnts
     
    Scripts man, Jun 13, 2010 IP
  3. dnsman

    dnsman Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    okey, thank;> but this is not fast method for more links..:>
     
    dnsman, Jun 13, 2010 IP
  4. shubhamjain

    shubhamjain Active Member

    Messages:
    215
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    63
    #4
    Perhaps thats the only way. You got to get the page using either file_get_contents() or cURL. Then perform a search for "The video you have requested is not available." using strpos().
     
    shubhamjain, Jun 13, 2010 IP