check if exist curl in vps at begin

#462 check curl mod
This commit is contained in:
qkqpttgf
2021-11-04 10:39:57 +08:00
committed by GitHub
parent 4577a35b83
commit 2dfd11c8d1
+3
View File
@@ -49,6 +49,9 @@ if (isset($_SERVER['USER'])&&$_SERVER['USER']==='qcloud') {
else echo $re['body'];
} else {
include 'platform/Normal.php';
if (!function_exists('curl_init')) {
return message('<font color="red">Need curl</font>, please install php-curl.', 'Error', 500);
}
$path = getpath();
//echo 'path:'. $path;
$_GET = getGET();