vim /usr/local/php/etc/php.ini

###加上一行,把禁用函数添加上即可,以空格隔开

disable_functions = fsockopen pfsockopen stream_socket_client mysql_connect gethostbyname