Fli
05-15-2014, 10:48 AM
Hello,
please is there any PHP script that will list all disabled PHP functions (disable functions)?
Update: This script does it:
<?phperror_reporting(E_ALL);
$disabled_functions = ini_get('disable_functions');
if ($disabled_functions!='')
{
$arr = explode(',', $disabled_functions);
sort($arr);
echo 'Disabled Functions:<br>';
for ($i=0; $i<count($arr); $i++)
{
echo $i.' - '.$arr[$i].'<br>';
}
}
else
{
echo 'No functions disabled';
}
?>
Or there even simplier:
<?php echo 'disable_functions: ' . ini_get('disable_functions'); ?>
please is there any PHP script that will list all disabled PHP functions (disable functions)?
Update: This script does it:
<?phperror_reporting(E_ALL);
$disabled_functions = ini_get('disable_functions');
if ($disabled_functions!='')
{
$arr = explode(',', $disabled_functions);
sort($arr);
echo 'Disabled Functions:<br>';
for ($i=0; $i<count($arr); $i++)
{
echo $i.' - '.$arr[$i].'<br>';
}
}
else
{
echo 'No functions disabled';
}
?>
Or there even simplier:
<?php echo 'disable_functions: ' . ini_get('disable_functions'); ?>