You can check the availability of a PHP function using the sequence below:
<?php
if(function_exists('fsockopen')) {
echo "fsockopen function is enabled";
}
else {
echo "fsockopen is not enabled";
}
?>
Replace fsockopen with the function whose availability you want to check.
Please note that within the Linux subscriptions offered by HostX you can activate the desired PHP functions in cPanel >> Select PHP version >> PHP Settings.
