Created
October 17, 2020 21:36
-
-
Save bernard-ng/184e98ec140c247e4b07035fc124df33 to your computer and use it in GitHub Desktop.
show php disabled function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
error_reporting(E_ALL); | |
$disabled_functions = ini_get('disable_functions'); | |
if ($disabled_functions!='') | |
{ | |
$arr = explode(',', $disabled_functions); | |
sort($arr); | |
echo 'Disabled Functions: '; | |
for ($i=0; $i < count($arr); $i++) | |
{ | |
echo "{$i} - {$arr[$i]} \n"; | |
} | |
} else { | |
echo 'No functions disabled'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment