php disable_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,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid, posix_setpgid,posix_setsid,posix_setuid,posix_strerror,posix_times,posix_ttyname,posix_uname
PHP.ini 里面的 disable_functions 开关选项可关闭一些危险的函数,比如system,exec 等,比如: disable_functions = phpinfo , 如果在文件中调用 phpinfo() 函数,那么在 error_reporting 开启的情况下,会提示如下错误:
Warning: phpinfo() has been disabled for security reasons
目前发现万网主机是屏蔽此函数的。
利用 google: inurl:phpinfo.php 就可查看大量的主机信息,一般为管理员进行调试的时候放上未删除的文件。禁用不安全的PHP函数,这是必须的
- EXCEL工作表 中COUNT函数和COUNTA函数的用法
- cad默认比例怎么设置? cad重置比例列表的教程
- AS3 atan与atan2函数区别
- 支持dx12的显卡有哪些?目前完整支持DirectX12的显卡列表详解
- Android Wear首款街头艺术系列表盘应用上架Google Play
- FreeBSD inet_network() 函数中的单字节溢出漏洞
- 全国各地的通信管理局BBS专项备案受理资料列表
- PHP time_nanosleep() 函数使用介绍
- linux中shell 函数式用法尝试具体说明
- 如何清理 Ubuntu 14.04 的最近打开文件历史列表 保护个人隐私
- 苹果 macOS 系统键盘快捷键列表大全整理
- Mac系统中怎么绘制函数图像?