docs:programming:php:php_options

PHP Options

Options for PHP may be configured by one or more of the following:

  • in the php.ini file, usually located at /etc/php.ini
    magic_quotes_gpc = off
  • in an .htaccess file for Apache
    • php_flag is only used for boolean values
    • php_value can set all types of values
    • ONLY if the php module is being used - will not work if you are using PHP as CGI
      <IfModule mod_php4.c>
      php_value post_max_size 20971520
      php_flag magic_quotes_gpc off
      </IfModule>
  • inline in a php script with ini_set()
    ini_set("magic_quotes", "off");
  • you can also use the dl() function to dynamically load a module at run time
  • docs/programming/php/php_options.txt
  • Last modified: 2008/08/03 00:25
  • by 127.0.0.1