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.

Was this answer helpful? 0 Users Found This Useful (0 Votes)