How to work this piece of code

Discussion in 'Programming' started by nura235, Mar 2, 2010.

  1. #1
    hi,

    i m using the below code to call the download link from Hotfile.

     	
    	
    		} elseif (preg_match("/http:\/\/hotfile\.com\/dl\/([0-9]+)\/([0-9a-z]+)\//i",$link)) {
    			$getter = "getHotfileLink";
    
    Code (markup):
    And it work fine.

    And the netload seem get download link same as hotfile.

    so i m using this

    elseif (eregi("http:\/\/netload\.in\/datei[0-9a-z]\//i",$link)) {
    			$getter = "getNetloadLink";
    		
    		} elseif (preg_match("http://www\.netload\.in/datei[0-9a-z]{32}\/",$link)) {
    			$getter = "getNetloadLink";
    Code (markup):
    but i m getting error to get download link.

    Can anyone fix the netload get link problem in above code.
     
    nura235, Mar 2, 2010 IP
  2. nura235

    nura235 Well-Known Member

    Messages:
    529
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    110
    #2
    Problem has been solved. Mods can close this thread.
     
    nura235, Mar 3, 2010 IP