国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > PHP > 正文

php禁用函數(shù)設(shè)置及查看方法的介紹(附示例)

2020-03-22 19:35:45
字體:
供稿:網(wǎng)友
本篇文章給大家?guī)淼膬?nèi)容是關(guān)于php禁用函數(shù)設(shè)置及查看方法的介紹(附示例),有一定的參考價(jià)值,有需要的朋友可以參考一下,希望對(duì)你有所幫助。

這篇文章主要介紹了php禁用函數(shù)設(shè)置及查看方法,結(jié)合實(shí)例形式分析了php禁用函數(shù)的方法及使用php探針查看禁用函數(shù)信息的相關(guān)實(shí)現(xiàn)技巧,需要的朋友可以參考下

本文實(shí)例講述了php禁用函數(shù)設(shè)置及查看方法。分享給大家供大家參考,具體如下:

打開PHP.INI,找到這行:

disable_functions =

在后面那里加上要禁用的函數(shù),如禁用多個(gè)函數(shù),要用半角逗號(hào) , 分開

給個(gè)例子:

disable_functions = passthru,exec,system,popen,chroot,scandir,chgrp,chown,escapeshellcmd,escapeshellarg,shell_exec,proc_open,proc_get_status

建議在主機(jī)上禁用的函數(shù):

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

在主機(jī)上面如何查看禁用的函數(shù)列表,我從網(wǎng)上找了一個(gè)非常不錯(cuò)的探針

 ?phpheader( content-Type: text/html; charset=utf-8 header( Cache-Control: no-cache, must-revalidate header( Pragma: no-cache error_reporting(0);ob_end_flush(); !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN  http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd  html xmlns= http://www.w3.org/1999/xhtml  head  meta http-equiv= Pragma content= No-cache /  meta http-equiv= Expires content= 0 /  meta http-equiv= cache-control content= private /  meta http-equiv= Content-Type content= text/html; charset=utf-8 / //加了這句,看看能不能解決linux下顯示亂碼的問題? title PHP 探針 v1.0 /title  style type= text/css body{text-align:center;margin-top:20px;background-color:#a9b674;}#overview{width:700px;margin:0 auto;text-align:left;}a{text-decoration:underline;color:#992700;}.strong{color:#992700;}.basew{width:300px;} /style  /head  body  div id= overview  div id= copyright 版權(quán)信息 a href= hello.php?typ=baseinfo [基本信息] /a a href= hello.php?typ=superinfo [高級(jí)信息] /a  ?phpif (function_exists( phpinfo )){ echo a href= hello.php?typ=phpinfo [phpinfo] /a }echo br / php探針v1.0 by MKDuse(blueidea-id) br / br / 此程序代碼,可免費(fèi)使用;但不得用于商業(yè)用途;完全轉(zhuǎn)載或使用此代碼,請(qǐng)保留版權(quán)信息; br / 歡迎指正錯(cuò)誤提建議,QQ:122712355 /div if (empty($_GET[ typ ])){ baseinfo();}else{switch ($_GET[ typ ]){case phpinfo :phpinfoview();break;case superinfo :superinfo();break;case baseinfo :baseinfo();break;default:baseinfo();}function getime() $t = gettimeofday(); return (float)($t[ sec ] + $t[ usec ]/1000000);function baseinfo(){echo h1 基本信息 /h1 $arr[]=array( Current PHP version: ,phpversion());$arr[]=array( Zend engine version: ,zend_version());$arr[]=array( 服務(wù)器版本 ,$_SERVER[ SERVER_SOFTWARE $arr[]=array( ip地址 ,$_SERVER[ REMOTE_HOST //ip$arr[]=array( 域名 ,$_SERVER[ HTTP_HOST $arr[]=array( 協(xié)議端口 ,$_SERVER[ SERVER_PROTOCOL ]. .$_SERVER[ SERVER_PORT $arr[]=array( 站點(diǎn)根目錄 ,$_SERVER[ PATH_TRANSLATED $arr[]=array( 服務(wù)器時(shí)間 ,date( Y年m月d日,H:i:s,D $arr[]=array( 當(dāng)前用戶 ,get_current_user());$arr[]=array( 操作系統(tǒng) ,php_uname( s ).php_uname( r ).php_uname( v $arr[]=array( include_path ,ini_get( include_path $arr[]=array( Server API ,php_sapi_name());$arr[]=array( error_reporting level ,ini_get( display_errors ));$arr[]=array( POST提交限制 ,ini_get( post_max_size $arr[]=array( upload_max_filesize ,ini_get( upload_max_filesize $arr[]=array( 腳本超時(shí)時(shí)間 ,ini_get( max_execution_time ). 秒 if (ini_get( safe_mode )==0){$arr[]=array( PHP安全模式(Safe_mode) , off }else{$arr[]=array( PHP安全模式(Safe_mode) , on }if (function_exists( memory_get_usage )){$arr[]=array( memory_get_usage ,ini_get( memory_get_usage }//$arr[]=array( 可用空間 ,intval(diskfreespace( / )/(1024 * 1024)). M echo table for($i=0;$i count($arr);$i++) $overview= tr td >

以上就是php禁用函數(shù)設(shè)置及查看方法的介紹(附示例)的詳細(xì)內(nèi)容,PHP教程

鄭重聲明:本文版權(quán)歸原作者所有,轉(zhuǎn)載文章僅為傳播更多信息之目的,如作者信息標(biāo)記有誤,請(qǐng)第一時(shí)間聯(lián)系我們修改或刪除,多謝。

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 八宿县| 汕头市| 婺源县| 磴口县| 闵行区| 北京市| 斗六市| 利津县| 长葛市| 白水县| 汉沽区| 会昌县| 广安市| 天峨县| 垫江县| 郁南县| 平江县| 衡山县| 厦门市| 石屏县| 老河口市| 监利县| 佛坪县| 宜黄县| 盐津县| 大名县| 周宁县| 天峨县| 鄱阳县| 民权县| 长沙县| 静安区| 轮台县| 昭苏县| 东阿县| 萍乡市| 扶沟县| 商丘市| 郎溪县| 榆树市| 株洲县|