How to disable a function in PHP?
How to disable functions in PHP: First open the "php.ini" configuration file; then look for the character "disable_functions", which is a configuration item for PHP to disable functions; then add the required Disabled functions, multiple functions are separated by English commas; just save and restart.
Recommended disabled functions
disable_functions = system, exec, shell_exec, passthru, proc_open, proc_close, proc_get_status, checkdnsrr, getmxrr, getservbyname, getservbyport, syslog , popen, show_source, highlight_file, dl, socket_listen, socket_create, socket_bind, socket_accept, socket_connect, stream_socket_server, stream_socket_accept, stream_socket_client, ftp_connect, ftp_login, ftp_pasv, ftp_get, sys_getloadavg, disk_total_space, disk_free_space, posix_ctermid , posix_get_last_error, posix_getcwd, posix_getegid, posix_geteuid, posix_getgid , posix_getgrgid, posix_getgrnam, posix_getgroups, posix_getlogin, posix_getpgid, posix_getpgrp, posix_getpid, posix_getppid, posix_getpwnam, posix_getpwuid, posix_getrlimit, posix_getsid, posix_getuid, posix_isatty, posix_kill, po six_mkfifo, posix_setegid, posix_seteuid, posix_setgid, posix_setpgid, posix_setsid, posix_setuid, posix_strerror, posix_times, posix_ttyname , posix_uname
Recommended tutorial: "PHP"
The above is the detailed content of How to disable function in PHP?. For more information, please follow other related articles on the PHP Chinese website!