PHP如何停用函數?
PHP停用函數的方法:先開啟“php.ini”設定檔;然後找尋字元“disable_functions”,該字元是PHP停用函數的組態項目;接著在該組態項加上需要禁用的函數,多個函數以英文逗號分隔;最後儲存重啟即可。
推薦停用的函式
disable_functions = system, exec, shell_exec, passthru, proc_open, proc_close, proc_get_status, checkdnsrr, getmxrr, proc_close, proc_get_status, checkdnsrr, getmxrr, getservbyportname, getservbyportby. , popen, show_source, highlight_file, dl, socket_listen, socket_create, socket_bind, socket_accept, socket_connect, stream_socket_server, stream_socket_accept, stream_sexd, pftftpftp. g, 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_getpgid, posix_getpgrp, posix_getpid, posix_getppid, posix_0 , posix_mkfifo, posix_setegid, posix_seteuid, posix_setgid, posix_setpgid, posix_setsid, posix_setuid, posix_strerror, posix_times, posix_ttyname , posix_uname
推薦教學:《PHP》
以上是PHP如何停用函數?的詳細內容。更多資訊請關注PHP中文網其他相關文章!