diff --git a/scripts/install.php b/scripts/install.php index e11e87d..bee8f95 100644 --- a/scripts/install.php +++ b/scripts/install.php @@ -197,7 +197,7 @@ function getLatestRelease() { echo str_repeat('-', 80) . LINE_BREAK; echo 'Getting latest release of FastSitePHP: ' . $url . LINE_BREAK; $context = stream_context_create($http_options); - $response = file_get_contents($url, null, $context); + $response = file_get_contents($url, false, $context); $json = json_decode($response); if ($json && isset($json->tag_name)) { echo 'Version: ' . $json->tag_name . LINE_BREAK; @@ -234,7 +234,7 @@ function downloadZip($url, $path) { ), ); $context = stream_context_create($http_options); - $response = file_get_contents($url, null, $context); + $response = file_get_contents($url, false, $context); // Look for a 200 Response Code, example: // 'HTTP/1.0 200 OK'