- Create a folder at the root of your user home folder
(Example:
C:/Users/uname/
) called.ssh
. - Create the following files if they do not already exist (paths begin from the root of your user home folder):
.ssh/config
<?php | |
function file_get_contents_ex($url, $cookie = null, $proxy = null, $auth = null) | |
{ | |
$opts = array( | |
'http' => array( | |
'method' => 'GET', | |
'user-agent'=> 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.109 Safari/537.36', | |
'header' => "Accept-language: en\r\n" . | |
(!empty($auth) ? "Proxy-Authorization: Basic {$auth}\r\n" : '') . |