mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-04 18:29:40 +02:00
Check cURL before install.
if cURL have not installed, get_like() should be return false.
This commit is contained in:
parent
720dd019a0
commit
bb8900e6c4
3 changed files with 32 additions and 0 deletions
|
@ -156,6 +156,21 @@ function check_php_pcre() {
|
|||
|
||||
} // check_php_pcre
|
||||
|
||||
/**
|
||||
* check_php_curl
|
||||
* This makes sure they have cURL (curl_???) support
|
||||
* compiled into PHP this is optional
|
||||
*/
|
||||
function check_php_curl() {
|
||||
|
||||
if (!extension_loaded('curl')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
} // check_php_curl
|
||||
|
||||
/**
|
||||
* check_config_values
|
||||
* checks to make sure that they have at least set the needed variables
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue