Creating and using a php.ini file Print

  • 0

The php.ini file is the default configuration file for running applications that require PHP. It is used to control variables such as upload sizes, file timeouts, and resource limits. Creating a php.ini file can be done by opening Notepad and renaming the file to php.ini. You can then upload your php.ini file to the directory you would like the changes to take affect.

Below are a few examples of what your php.ini can contain:

      safe_mode = off
      register_globals = on
      open_basedir = (no value)
      output_buffering = on
      upload_max_filesize = 300M
      post_max_size = 200M (or more)
      max_execution_time = 6000 (or more)
      max_input_time = 6000 (or more)
      memory_limit = 128M (or more)
      display_errors = On
      file_uploads = On
      session.gc_maxlifetime = 14000 (or more)
      magic_quotes_gpc = Off

Was this answer helpful?

« Back

["\r\n