PHP >
Don’t forget to restart the server after editing php.ini.
Table of Contents [hide]
Using .htaccess instead of php.ini ∞
If you don’t have access to php.ini, you can use .htaccess and apply items with php_value<. For example:
php_value memory_limit 20M
register_globals ∞
register_globals = off
PHP safe mode ∞
The PHP safe mode is an attempt to solve the shared-server security problem. It is architecturally incorrect to try to solve this problem at the PHP level, but since the alternatives at the web server and OS levels aren’t very realistic, many people, especially ISP’s, use safe mode for now.
safe_mode = on # https://www.php.net/manual-lookup.php?pattern=features.safe-mode&lang=en&scope=404quickref <span class="footnote_referrer" ><a><sup id="footnote_plugin_tooltip_46907_1" class="footnote_plugin_tooltip_text" onclick="footnote_moveToAnchor_46907('footnote_plugin_reference_46907_1');" >[ 1 ]</sup ></a><span id="footnote_plugin_tooltip_text_46907_1" class="footnote_tooltip" > was [[archive:https://www.php.net/features.safe-mode|]] </span ></span><script type="text/javascript"> jQuery('#footnote_plugin_tooltip_46907_1').tooltip({ tip: '#footnote_plugin_tooltip_text_46907_1', tipClass: 'footnote_tooltip', effect: 'fade', predelay: 0, fadeInSpeed: 200, delay: 400, fadeOutSpeed: 200, position: 'top center', relative: true, offset: [1, 0], });</script> ; By default, Safe Mode does a UID compare check when ; opening files. If you want to relax this to a GID compare, ; then turn on safe_mode_gid. safe_mode_gid = Off
zlib compression ∞
zlib.output_compression = On
Footnotes

ported, date estimated