What is the php.ini file? and where is it?
The php.ini file is an important configuration file of your PHP server.This file location depends on several things : if your are using Linux or Windows, where you installed your webserver, ... the file is always located on the server where the scripts of will run.
It is a configuration file and control some of the settings of interpreter
The configuration file is read when the interpreter starts
Basic important settings:
Language options:
short_open_type_tag: Tell wherther to use sort form(<??>) or not default it is set to '1'.
asp_tags: Enable use of ASP like(<%%>) tags in addition
Resource Limit:
memory_limit: Maximum amount of memory a script can consume. default value is 128MB.
memory_execution_time: Max. execution time of each script, in seconds, default is 30s.
Data handling
register_global:Whether or not EGPCS variables as global variables. by default is off.
post_max_size: Maximum size of POST data that PHP will accept or you can POST through Form. Default Value is 8M.This setting is useful for file.
File upload
file_uploads: Whether or not allow http file uploads. default is ON
upload_tmp_dir:Temporary directory to be used for storing files when doing file upload. Will use system default if not specified.by default it is empty.
upload file max size:The maximum size of file upload. Default is 2 MB.
Others
allow_url_fopen: Whether to allow treatment of URL as files. Default is 'ON'.
session.cache.expire:Documents expire after n minutes default value is 180.
session.gc_maxlifetime:After this number of seconds stored data will be seen as 'garbage' and cleaned up by garbage collection process. Default value is 1440.
session.save_handler: Handler use to store/retrieve session data. Default value is files.
No comments:
Post a Comment
Do you find this useful??