php - how to get url from curl? -


i want generate link tusfile

i have premium account

this code

$request_url = 'https://www.tusfiles.net/bitbh7nh0wg'; $ch = curl_init(); curl_setopt($ch, curlopt_url, 'https://www.tusfiles.net/?op=login&login=xxxxx&password=xxxx'); curl_setopt($ch, curlopt_post, true); curl_setopt($ch, curlopt_cookiejar, 'cookie.txt'); curl_setopt($ch, curlopt_returntransfer, true); $store = curl_exec($ch); curl_setopt($ch, curlopt_url, $request_url); $content = curl_exec($ch); $regex='|<a.*?href="(.*?)"|';     preg_match_all($regex,$content,$parts);     $links=$parts[1];     foreach($links $link){         echo $link."<br>";     }     curl_close($ch); 


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -