PHP Deployment Scripts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
neatoDeploy/app/utils/curl.php

17 lines
389 B

<?php
namespace utils;
class curl {
public static function save($site, $file) {
if (! isStringFound($site, '://')) {
$site = 'https://' . $site;
}
exec(\neato::get_user_bin . 'curl ' . safeCmd($site) . ' -o ' . safeCmd($file), $output, $exit_code);
checkForError($exit_code, "Unable to curl download from: {$site}");
return $exit_code;
}
}