通过htaccess自定义PHP.ini设置

通过htaccess自定义PHP.ini设置

我对 PHP 手册中的这个 ini 列表感到困惑:http://www.php.net/manual/en/ini.list.php

我想通过 htaccess 设置一些自定义 php.ini 值,但是这些命令中的哪一个不起作用?

php_value upload_max_filesize 1M

php_value max_execution_time 3

php_value max_input_time 3

php_value memory_limit 2M

php_value post_max_size 1M

php_value open_basedir "/scripts"

php_flag allow_url_fopen 0

php_flag allow_url_include 0

php_flag file_uploads 0

php_value disable_functions 'apache_child_terminate, apache_setenv, define_syslog_variables, escapeshellarg, escapeshellcmd, exec, fp, fput, ftp_connect, ftp_exec, ftp_get, ftp_login, ftp_nb_fput, ftp_put, ftp_raw, ftp_rawlist, highlight_file, ini_set, phpinfo, ini_alter, ini_get_all, ini_restore, inject_code, mysql_pconnect, openlog, passthru, php_uname, phpAds_remoteInfo, phpAds_XmlRpc, phpAds_xmlrpcDecode, phpAds_xmlrpcEncode, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, posix_setuid, posix_uname, proc_close, proc_get_status, proc_nice, proc_open, proc_terminate, shell_exec, syslog, system, xmlrpc_entity_decode, curl_exec, curl_multi_exec, parse_ini_file, show_source, pcntl_fork, pcntl_exec, session_start, getmyuid, getmypid, leak, listen, diskfreespace, tmpfile, link, fopen, unlink, mkdir, file_get_contents, file, fread, rmdir, readfile, file_put_contents, fwrite, delete, fscanf, ignore_user_abort, dl'

相关内容