how to check link

Discussion in 'PHP' started by t6werserv, Jan 19, 2010.

  1. #1
    How do I know that this link works or not by code??
    ex:
    that Bad link:
    http://rapidshare.com/files/227166382/MyEgY.CoM.Internet_Download_Manager_5.17_Build_2.By.vibration.rar
     
    t6werserv, Jan 19, 2010 IP
  2. WebWorth

    WebWorth Greenhorn

    Messages:
    89
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    20
    #2
    PHP:

    $url = "http://rapidshare.com/files/227166382/MyEgY.CoM.Internet_Download_Manager_5.17_Build_2.By.vibration.rar ";
    
    $up = @fsockopen("$url", 80, $errno, $errstr, 30);
    if($up)
    {
    
    Do somthing
    
    }
    PHP:
     
    WebWorth, Jan 19, 2010 IP