0) { print '

First test if PHP commands can run. A green background means it can run while a red one means it can\'t.

'."\n"; for ($i = 0; $i < $j; $i++) { print '

'; if (is_callable($phpTest[$i])){ print ''; print "$phpTest[$i] is callable."; print ''; } else { print ''; print "$phpTest[$i] is not callable."; print ''; } print '

'."\n"; } } if ($phpClassTest > 0) { print '

Now test if PHP CLasses can run. A green background means it can run while a red one means it can\'t.

'."\n"; for ($i = 0; $i < $m; $i++) { print '

'; if (class_exists($phpClassTest[$i])){ print ''; print "$phpClassTest[$i] class exists."; print ''; } else { print ''; print "$phpClassTest[$i] class does not exist."; print ''; } print '

'."\n"; } } if ($k>0){ print '

Now for bash commands. A green background means it can run while a red one means it can\'t.

'."\n"; for ($i = 0; $i < $k; $i++) { print '

'; if (is_executable($bashPath.$bashTest[$i])){ print ''; print "$bashPath$bashTest[$i] is executable."; print ''; } else { print ''; print "$bashPath$bashTest[$i] is not executable."; print ''; } print '

'."\n"; } } if ($l>0){ print '

Now for bash commands not in "/usr/bin/". A green background means it can run while a red one means it can\'t.

'."\n"; for ($i = 0; $i < $l; $i++) { print '

'; if (is_executable($bashTestOther[$i])){ print ''; print "$bashTestOther[$i] is executable."; print ''; } else { print ''; print "$bashTestOther[$i] is not executable."; print ''; } print '

'."\n"; } } } else { $bashTest = 'convert, curl, mogrify, wget'; $bashTestOther = '/usr/sbin/sendmail'; $phpTest = 'curl_exec, curl_init, curl_setopt, gettext, gzdeflate'; $phpClassTest = ''; ?>

Commands are seperated by a comma & a space. I have entered several as an example for you.
Please note that you need a ", " between commands to list multiple commands to check.

PHP commands to test:
PHP Classes to test:
Bash commands to test that are in "/usr/bin/":
Bash commands to test:
Test the entered commands?