Ctrl+y Find: Disable_functions
After found, add after =
(Here are all the functions that are forbidden in the PHP tutorial) code:
Copy Content to Clipboard
Exec,system,passthru,error_log,ini_alter,dl,openlog,syslog,readlink,
Symlink,link,leak,fsockopen,proc_open,popepassthru,chroot,scandir,
Chgrp,chown,escapeshellcmd,escapeshellarg,shell_exec,proc_get_status,popen
Please put the above content on one line. Because it keeps the overall effect of the post as a newline
General backstage only with add:
Copy Content to Clipboard
Disable_functions = System,passthru,shell_exec,com,exec,shell
Search: Display_errors
If it's on, change it to off.
Search: MAGIC_QUOTES_GPC
If it's off, change it to on.
Search: Register_globals
If it's on, change it to off.
Search: Open_basedir
Back add
/www/:/tmp/
Here is the limit PHP can access the directory, must be added after the/, otherwise if there is/WWWABCD this directory will also be accessed
Multiple catalogs in English: delimited. If you do not add/tmp/, discuz! upload function will not be able to use
Note: The above content at the beginning of PHP.ini will have the relevant settings, please press Ctrl+x to find the next, do not directly modify the above
------------------------------
Optimized for PHP.ini
Support for GD libraries
; Extension=php_gd2.dll
Remove the preceding colon,
Output_buffering = Off
The output cache allows you to send headers (headers, including cookies) even after the output body content is at the cost of slowing the output layer down a bit. You can use the output cache to open the output cache at run time, or set the indication here to on so that the output cache for all files is opened.
Output_handler =; You can redirect all the output of your script to a function,
Doing so can be useful for handling or logging it.
For example, if you set this Output_handler to Ob_gzhandler, the output will be transparently compressed for a browser that supports gzip or deflate encoding.
Set an output processor to automatically turn on the output buffer.
Find this
Output_buffering = Off
Revision changed to
On
Note that you do not set a value, just set it to on.
Accordingly, you can also open gzip support in your discuz backstage, which is also an optimization content.
Some friends for security, also enabled the PHP security mode, this is a way
In addition, some friends need to use global variables and magic, which is a prerequisite for some PHP programs, discuz2.0 also need to
Can be turned on, but the security performance will be reduced, the method is simple.
Register_globals = off;
Modify it to ON.
Some friends often reflect the inability to upload large files or background backup data often times out
Max_execution_time = 30; This is the maximum time each script runs, you can modify the length, in seconds
Max_input_time = 60; This is the time that each script can consume, and the unit is the second
Memory_limit = 8m; This is the maximum memory consumed by the script and can be increased by itself
Upload_max_filesize = 2m; Upload the maximum license size of the file, change it yourself, some picture forum need this larger value
If:
PHP Error shows PHP has encountered a access violation at XXXXXX solution
Many people say that is the PHP version of the problem, in fact, can be seen from four places this problem
1, whether Zend the required DLL files in the directory to give insufficient permissions, must have read and run permissions
2, whether the use of 2003, set up the application pool, such as the limits of what in the pool, adjust a bit and try again, whether it is good, hehe
3,php.ini There are two places that are not set, and some programs must be used
Upload_tmp_dir the line's annotation character so that it works in the php.ini document.
Upload_tmp_dir is used to define the temporary path where the uploaded file is stored, where you can also define an absolute path,
For example: Upload_tmp_dir = D:upload Of course, at this point your d:upload directory must have read and write permissions.
Here I set the
Upload_tmp_dir = C:temp
This error statement usually occurs because your php.ini is not set up for Session.save_path.
The workaround is to set the Session.save_path and Session.cookie_path settings to
Session.save_path = C:temp
Session.cookie_path = C:temp (I did not modify this, I found that the revised validation of MA can not be used)
Then create a temp directory under the C: directory
http://www.bkjia.com/PHPjc/632319.html www.bkjia.com true http://www.bkjia.com/PHPjc/632319.html techarticle ctrl+y find: Disable_functions found after the = added (here are all prohibited functions in the PHP tutorial) code: Copy content to clipboard exec,system,passthru,error_log,ini_ ...