Curl
$url = 'https://code.jquery.com/jquery-2.2.0.js'; $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_URL, $url); $response = curl_exec($ch); echo $response;