function _is_exec_enabled in PhantomJS Capture 7
Same name and namespace in other branches
- 8 phantomjs_capture.install \_is_exec_enabled()
Return if exec is enabled and can be executed by the user.
Taken from a combination of answers online.
Return value
bool
See also
http://stackoverflow.com/questions/3938120/check-if-exec-is-disabled
1 call to _is_exec_enabled()
- phantomjs_capture_requirements in ./
phantomjs_capture.install - Implements hook_requirements().
File
- ./
phantomjs_capture.install, line 47
Code
function _is_exec_enabled() {
$safe_mode = ini_get('safe_mode');
if ($safe_mode && drupal_strtolower($safe_mode) != 'off') {
return FALSE;
}
$disabled = explode(',', ini_get('disable_functions'));
return !in_array('exec', $disabled);
}