PHP: How To Disable Dangerous Functions

后端 未结 6 1175
青春惊慌失措
青春惊慌失措 2020-11-28 08:33

How can I disable the dangerous eval function? Can that be done using ini_set function?

Also how to disable following functions? Ca

6条回答
  •  情书的邮戳
    2020-11-28 09:27

    Add this line to your php.ini (you Search for 'disable_functions')

    disable_functions =exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source
    

    Then restart your php service (apache or php-fpm)

提交回复
热议问题