quick adjustment to php.ini file on shared hosting

  • jharvey1029
  • Novice
  • Novice
  • jharvey1029
  • Posts: 31
  • Loc: New Castle, PA

Post 3+ Months Ago

Hey guys,

I'm installing a CRM that I've used before (same server) but this is an updated version and was wondering if there was anyone that could help me tweak my php.ini file to make it work.I have gone through the file myself and had thought the changes I had made we all good, however apparently when the install script is run for this CRM it checks and says that there are things that need adjusting.

Here is what the install checks for:

Code: [ Select ]
PHP version >= 5.0     5.2.17
IMAP Support          Yes
Zlib Support          Yes
GD graphics library      Yes
Database Extension      Yes

Recommended PHP Settings:
Directive         Recommended            PHP.ini value    Need Help With
register_globals      On                 On           yes
max_execution_time      600                 30           yes
error_reporting      E_WARNING & ~E_NOTICE        NOT RECOMMENDED     yes
log_errors     Off      On[/list]
  1. PHP version >= 5.0     5.2.17
  2. IMAP Support          Yes
  3. Zlib Support          Yes
  4. GD graphics library      Yes
  5. Database Extension      Yes
  6. Recommended PHP Settings:
  7. Directive         Recommended            PHP.ini value    Need Help With
  8. register_globals      On                 On           yes
  9. max_execution_time      600                 30           yes
  10. error_reporting      E_WARNING & ~E_NOTICE        NOT RECOMMENDED     yes
  11. log_errors     Off      On[/list]


And here is my php.ini file that sits in the directory of this script: (http://mydomain/crm) Should this file be here or on the root. If placed on the root will this not affect other scripts?

Code: [ Select ]
[PHP]

;;;;;;;;;;;
; WARNING ;
;;;;;;;;;;;
; This is the default settings file for new PHP installations.
; By default, PHP installs itself with a configuration suitable for
; development purposes, and *NOT* for production purposes.
; For several security-oriented considerations that should be taken
; before going online with your site, please consult php.ini-recommended
; and http://php.net/manual/en/security.php.


;;;;;;;;;;;;;;;;;;;
; About this file ;
;;;;;;;;;;;;;;;;;;;
; This file controls many aspects of PHP's behavior. In order for PHP to
; read it, it must be named 'php.ini'. PHP looks for it in the current
; working directory, in the path designated by the environment variable
; PHPRC, and in the path that was defined in compile time (in that order).
; Under Windows, the compile-time path is the Windows directory. The
; path in which the php.ini file is looked for can be overridden using
; the -c argument in command line mode.
;
; The syntax of the file is extremely simple. Whitespace and Lines
; beginning with a semicolon are silently ignored (as you probably guessed).
; Section headers (e.g. [Foo]) are also silently ignored, even though
; they might mean something in the future.
;
; Directives are specified using the following syntax:
; directive = value
; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
;
; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
; of the INI constants (On, Off, True, False, Yes, No and None) or an expression
; (e.g. E_ALL & ~E_NOTICE), or a quoted string ("foo").
;
; Expressions in the INI file are limited to bitwise operators and parentheses:
; |    bitwise OR
; &    bitwise AND
; ~    bitwise NOT
; !    boolean NOT
;
; Boolean flags can be turned on using the values 1, On, True or Yes.
; They can be turned off using the values 0, Off, False or No.
;
; An empty string can be denoted by simply not writing anything after the equal
; sign, or by using the None keyword:
;
; foo =     ; sets foo to an empty string
; foo = none  ; sets foo to an empty string
; foo = "none" ; sets foo to the string 'none'
;
; If you use constants in your value, and these constants belong to a
; dynamically loaded extension (either a PHP extension or a Zend extension),
; you may only use these constants *after* the line that loads the extension.
;
; All the values in the php.ini-dist file correspond to the builtin
; defaults (that is, if no php.ini is used, or if you delete these lines,
; the builtin defaults will be identical).


;;;;;;;;;;;;;;;;;;;;
; Language Options ;
;;;;;;;;;;;;;;;;;;;;

; Enable the PHP scripting language engine under Apache.
engine = On

; Allow the <? tag. Otherwise, only <?php and <script> tags are recognized.
; NOTE: Using short tags should be avoided when developing applications or
; libraries that are meant for redistribution, or deployment on PHP
; servers which are not under your control, because short tags may not
; be supported on the target server. For portable, redistributable code,
; be sure not to use short tags.
short_open_tag = On

; Allow ASP-style <% %> tags.
asp_tags = Off

; The number of significant digits displayed in floating point numbers.
precision  = 12

; Enforce year 2000 compliance (will cause problems with non-compliant browsers)
y2k_compliance = On

; Output buffering allows you to send header lines (including cookies) even
; after you send body content, at the price of slowing PHP's output layer a
; bit. You can enable output buffering during runtime by calling the output
; buffering functions. You can also enable output buffering for all files by
; setting this directive to On. If you wish to limit the size of the buffer
; to a certain size - you can use a maximum number of bytes instead of 'On', as
; a value for this directive (e.g., output_buffering=4096).
output_buffering = On

; You can redirect all of the output of your scripts to a function. For
; example, if you set output_handler to "mb_output_handler", character
; encoding will be transparently converted to the specified encoding.
; Setting any output handler automatically turns on output buffering.
; Note: People who wrote portable scripts should not depend on this ini
;    directive. Instead, explicitly set the output handler using ob_start().
;    Using this ini directive may cause problems unless you know what script
;    is doing.
; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler"
;    and you cannot use both "ob_gzhandler" and "zlib.output_compression".
;output_handler =

; Transparent output compression using the zlib library
; Valid values for this option are 'off', 'on', or a specific buffer size
; to be used for compression (default is 4KB)
; Note: Resulting chunk size may vary due to nature of compression. PHP
;    outputs chunks that are few hundreds bytes each as a result of
;    compression. If you prefer a larger chunk size for better
;    performance, enable output_buffering in addition.
; Note: You need to use zlib.output_handler instead of the standard
;    output_handler, or otherwise the output will be corrupted.
zlib.output_compression = Off

; You cannot specify additional output handlers if zlib.output_compression
; is activated here. This setting does the same as output_handler but in
; a different order.
;zlib.output_handler =

; Implicit flush tells PHP to tell the output layer to flush itself
; automatically after every output block. This is equivalent to calling the
; PHP function flush() after each and every call to print() or echo() and each
; and every HTML block. Turning this option on has serious performance
; implications and is generally recommended for debugging purposes only.
implicit_flush = Off

; The unserialize callback function will be called (with the undefined class'
; name as parameter), if the unserializer finds an undefined class
; which should be instanciated.
; A warning appears if the specified function is not defined, or if the
; function doesn't include/implement the missing class.
; So only set this entry, if you really want to implement such a
; callback-function.
unserialize_callback_func=

; When floats & doubles are serialized store serialize_precision significant
; digits after the floating point. The default value ensures that when floats
; are decoded with unserialize, the data will remain the same.
serialize_precision = 100

; Whether to enable the ability to force arguments to be passed by reference
; at function call time. This method is deprecated and is likely to be
; unsupported in future versions of PHP/Zend. The encouraged method of
; specifying which arguments should be passed by reference is in the function
; declaration. You're encouraged to try and turn this option Off and make
; sure your scripts work properly with it in order to ensure they will work
; with future versions of the language (you will receive a warning each time
; you use this feature, and the argument will be passed by value instead of by
; reference).
allow_call_time_pass_reference = On

; Safe Mode
;
safe_mode = Off

; 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

; When safe_mode is on, UID/GID checks are bypassed when
; including files from this directory and its subdirectories.
; (directory must also be in include_path or full path must
; be used when including)
safe_mode_include_dir =

; When safe_mode is on, only executables located in the safe_mode_exec_dir
; will be allowed to be executed via the exec family of functions.
safe_mode_exec_dir =

; Setting certain environment variables may be a potential security breach.
; This directive contains a comma-delimited list of prefixes. In Safe Mode,
; the user may only alter environment variables whose names begin with the
; prefixes supplied here. By default, users will only be able to set
; environment variables that begin with PHP_ (e.g. PHP_FOO=BAR).
;
; Note: If this directive is empty, PHP will let the user modify ANY
; environment variable!
safe_mode_allowed_env_vars = PHP_

; This directive contains a comma-delimited list of environment variables that
; the end user won't be able to change using putenv(). These variables will be
; protected even if safe_mode_allowed_env_vars is set to allow to change them.
safe_mode_protected_env_vars = LD_LIBRARY_PATH

; open_basedir, if set, limits all file operations to the defined directory
; and below. This directive makes most sense if used in a per-directory
; or per-virtualhost web server configuration file. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
;open_basedir =

; This directive allows you to disable certain functions for security reasons.
; It receives a comma-delimited list of function names. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
disable_functions = dl

; This directive allows you to disable certain classes for security reasons.
; It receives a comma-delimited list of class names. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
disable_classes =

; Colors for Syntax Highlighting mode. Anything that's acceptable in
; <font color="??????"> would work.
;highlight.string = #DD0000
;highlight.comment = #FF9900
;highlight.keyword = #007700
;highlight.bg   = #FFFFFF
;highlight.default = #0000BB
;highlight.html  = #000000


;
; Misc
;
; Decides whether PHP may expose the fact that it is installed on the server
; (e.g. by adding its signature to the Web server header). It is no security
; threat in any way, but it makes it possible to determine whether you use PHP
; on your server or not.
expose_php = Off


;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 600
max_input_time = 60
memory_limit = 64M

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; error_reporting is a bit-field. Or each number up to get desired error
; reporting level
; E_ALL       - All errors and warnings
; E_ERROR      - fatal run-time errors
; E_WARNING     - run-time warnings (non-fatal errors)
; E_PARSE      - compile-time parse errors
; E_NOTICE     - run-time notices (these are warnings which often result
;           from a bug in your code, but it's possible that it was
;           intentional (e.g., using an uninitialized variable and
;           relying on the fact it's automatically initialized to an
;           empty string)
; E_CORE_ERROR   - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING  - warnings (non-fatal errors) that occur during PHP's
;           initial startup
; E_COMPILE_ERROR  - fatal compile-time errors
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
; E_USER_ERROR   - user-generated error message
; E_USER_WARNING  - user-generated warning message
; E_USER_NOTICE   - user-generated notice message
;
; Examples:
;
;  - Show all errors, except for notices
;
;error_reporting = E_ALL & ~E_NOTICE
;
;  - Show only errors
;
;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
;
;  - Show all errors except for notices
;
error_reporting = E_ALL & ~E_NOTICE

; Print out errors (as a part of the output). For production web sites,
; you're strongly encouraged to turn this feature off, and use error logging
; instead (see below). Keeping display_errors enabled on a production web site
; may reveal security information to end users, such as file paths on your Web
; server, your database schema or other information.
display_errors = On

; Even when display_errors is on, errors that occur during PHP's startup
; sequence are not displayed. It's strongly recommended to keep
; display_startup_errors off, except for when debugging.
display_startup_errors = Off

; Log errors into a log file (server-specific log, stderr, or error_log (below))
; As stated above, you're strongly advised to use error logging in place of
; error displaying on production web sites.
log_errors = Off;

; Set maximum length of log_errors. In error_log information about the source is
; added. The default is 1024 and 0 allows to not apply any maximum length at all.
log_errors = Off;

; Do not log repeated messages. Repeated errors must occur in same file on same
; line until ignore_repeated_source is set true.
ignore_repeated_errors = Off

; Ignore source of message when ignoring repeated messages. When this setting
; is On you will not log errors with repeated messages from different files or
; sourcelines.
ignore_repeated_source = Off

; If this parameter is set to Off, then memory leaks will not be shown (on
; stdout or in the log). This has only effect in a debug compile, and if
; error reporting includes E_WARNING in the allowed list
report_memleaks = On

; Store the last error/warning message in $php_errormsg (boolean).
track_errors = Off

; Disable the inclusion of HTML tags in error messages.
;html_errors = Off

; If html_errors is set On PHP produces clickable error messages that direct
; to a page describing the error or function causing the error in detail.
; You can download a copy of the PHP manual from http://www.php.net/docs.php
; and change docref_root to the base URL of your local copy including the
; leading '/'. You must also specify the file extension being used including
; the dot.
;docref_root = "/phpmanual/"
;docref_ext = .html

; String to output before an error message.
;error_prepend_string = "<font color=ff0000>"

; String to output after an error message.
;error_append_string = "</font>"

; Log errors to specified file.
error_log = error_log;

; Log errors to syslog (Event Log on NT, not valid in Windows 95).
error_log = error_log;


;;;;;;;;;;;;;;;;;
; Data Handling ;
;;;;;;;;;;;;;;;;;
;
; Note - track_vars is ALWAYS enabled as of PHP 4.0.3

; The separator used in PHP generated URLs to separate arguments.
; Default is "&".
;arg_separator.output = "&amp;"

; List of separator(s) used by PHP to parse input URLs into variables.
; Default is "&".
; NOTE: Every character in this directive is considered as separator!
;arg_separator.input = ";&"

; This directive describes the order in which PHP registers GET, POST, Cookie,
; Environment and Built-in variables (G, P, C, E & S respectively, often
; referred to as EGPCS or GPC). Registration is done from left to right, newer
; values override older values.
variables_order = "EGPCS"

; Whether or not to register the EGPCS variables as global variables. You may
; want to turn this off if you don't want to clutter your scripts' global scope
; with user data. This makes most sense when coupled with track_vars - in which
; case you can access all of the GPC variables through the $HTTP_*_VARS[],
; variables.
;
; You should do your best to write your scripts so that they do not require
; register_globals to be on; Using form variables as globals can easily lead
; to possible security problems, if the code is not very well thought of.
register_globals = Off

; This directive tells PHP whether to declare the argv&argc variables (that
; would contain the GET information). If you don't use these variables, you
; should turn it off for increased performance.
register_argc_argv = On

; Maximum size of POST data that PHP will accept.
post_max_size = 64M

; This directive is deprecated. Use variables_order instead.
gpc_order = "GPC"

; Magic quotes
;

; Magic quotes for incoming GET/POST/Cookie data.
magic_quotes_gpc = Off

; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
magic_quotes_runtime = Off

; Use Sybase-style magic quotes (escape ' with '' instead of \').
magic_quotes_sybase = Off

; Automatically add files before or after any PHP document.
auto_prepend_file =
auto_append_file =

; As of 4.0b4, PHP always outputs a character encoding by default in
; the Content-type: header. To disable sending of the charset, simply
; set it to be empty.
;
; PHP's built-in default is text/html
default_mimetype = "text/html"
;default_charset = "iso-8859-1"

; Always populate the $HTTP_RAW_POST_DATA variable.
;always_populate_raw_post_data = On


;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

; UNIX: "/path1:/path2"
include_path = ".:/usr/lib/php:/usr/local/lib/php";
;
; Windows: "\path1;\path2"
;include_path = ".:/usr/lib/php:/usr/local/lib/php"  ;

; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than IIS)
; see documentation for security issues. The alternate is to use the
; cgi.force_redirect configuration below
doc_root =

; The directory under which PHP opens the script using /~username used only
; if nonempty.
user_dir =

; Directory in which the loadable extensions (modules) reside.
extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613"
zend_extension="/usr/local/IonCube/ioncube_loader_lin_5.2.so"
;zend_extension="/usr/local/IonCube/ioncube_loader_lin_5.2.so"

; Whether or not to enable the dl() function. The dl() function does NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
; disabled on them.
enable_dl = Off

; cgi.force_redirect is necessary to provide security running PHP as a CGI under
; most web servers. Left undefined, PHP turns this on by default. You can
; turn it off here AT YOUR OWN RISK
; **You CAN safely turn this off for IIS, in fact, you MUST.**
; cgi.force_redirect = 1

; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
; every request.
; cgi.nph = 1

; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
; will look for to know it is OK to continue execution. Setting this variable MAY
; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
; cgi.redirect_status_env = ;

; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP's
; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting
; this to 1 will cause PHP CGI to fix it's paths to conform to the spec. A setting
; of zero causes PHP to behave as before. Default is zero. You should fix your scripts
; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
; cgi.fix_pathinfo=0

; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
; security tokens of the calling client. This allows IIS to define the
; security context that the request runs under. mod_fastcgi under Apache
; does not currently support this feature (03/17/2002)
; Set to 1 if running under IIS. Default is zero.
; fastcgi.impersonate = 1;

; cgi.rfc2616_headers configuration option tells PHP what type of headers to
; use when sending HTTP response code. If it's set 0 PHP sends Status: header that
; is supported by Apache. When this option is set to 1 PHP will send
; RFC2616 compliant header.
; Default is zero.
;cgi.rfc2616_headers = 0


;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
;upload_tmp_dir =

; Maximum allowed size for uploaded files.
upload_max_filesize = 64M


;;;;;;;;;;;;;;;;;;
; Fopen wrappers ;
;;;;;;;;;;;;;;;;;;

; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
allow_url_fopen = On
allow_url_include = On
max_file_uploads = 20
; Define the anonymous ftp password (your email address)
;from="john@doe.com"

; Define the User-Agent string
; user_agent="PHP"

; Default timeout for socket based streams (seconds)
default_socket_timeout = 60

; If your scripts have to deal with files from Macintosh systems,
; or you are running on a Mac and need to deal with files from
; unix or win32 systems, setting this flag will cause PHP to
; automatically detect the EOL character in those files so that
; fgets() and file() will work regardless of the source of the file.
; auto_detect_line_endings = Off


;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
;
; If you wish to have an extension loaded automatically, use the following
; syntax:
;
;  extension=modulename.extension
;
; For example, on Windows:
;
;  extension=msql.dll
;
; ... or under UNIX:
;
;  extension=msql.so
;
; Note that it should be the name of the module only; no directory information
; needs to go here. Specify the location of the extension with the
; extension_dir directive above.


;Windows Extensions
;Note that MySQL and ODBC support is now built in, so no dll is needed for it.
;
;extension=php_bz2.dll
;extension=php_cpdf.dll
;extension=php_crack.dll
;extension=php_curl.dll
;extension=php_db.dll
;extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_dbx.dll
;extension=php_domxml.dll
;extension=php_exif.dll
;extension=php_fdf.dll
;extension=php_filepro.dll
;extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_hyperwave.dll
;extension=php_iconv.dll
;extension=php_ifx.dll
;extension=php_iisfunc.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_java.dll
;extension=php_ldap.dll
;extension=php_mbstring.dll
;extension=php_mcrypt.dll
;extension=php_mhash.dll
;extension=php_mime_magic.dll
;extension=php_ming.dll
;extension=php_mssql.dll
;extension=php_msql.dll
;extension=php_oci8.dll
;extension=php_openssl.dll
;extension=php_oracle.dll
;extension=php_pdf.dll
;extension=php_pgsql.dll
;extension=php_printer.dll
;extension=php_shmop.dll
;extension=php_snmp.dll
;extension=php_sockets.dll
;extension=php_sybase_ct.dll
;extension=php_w32api.dll
;extension=php_xmlrpc.dll
;extension=php_xslt.dll
;extension=php_yaz.dll
;extension=php_zip.dll


;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;

[Syslog]
; Whether or not to define the various syslog variables (e.g. $LOG_PID,
; $LOG_CRON, etc.). Turning it off is a good idea performance-wise. In
; runtime, you can define these variables by calling define_syslog_variables().
define_syslog_variables = Off

[mail function]
; For Win32 only.
;SMTP = localhost;
smtp_port = 25

; For Win32 only.
;sendmail_from = me@localhost.com;

; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = /usr/sbin/sendmail -t -i;

[Java]
;java.class.path = .\php_java.jar
;java.home = c:\jdk
;java.library = c:\jdk\jre\bin\hotspot\jvm.dll
;java.library.path = .\

[SQL]
sql.safe_mode = Off

[ODBC]
;odbc.default_db  = Not yet implemented
;odbc.default_user = Not yet implemented
;odbc.default_pw  = Not yet implemented

; Allow or prevent persistent links.
odbc.allow_persistent = Off

; Check that a connection is still valid before reuse.
odbc.check_persistent = Off

; Maximum number of persistent links. -1 means no limit.
odbc.max_persistent = -1

; Maximum number of links (persistent + non-persistent). -1 means no limit.
odbc.max_links = -1

; Handling of LONG fields. Returns number of bytes to variables. 0 means
; passthru.
odbc.defaultlrl = 4096

; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char.
; See the documentation on odbc_binmode and odbc_longreadlen for an explanation
; of uodbc.defaultlrl and uodbc.defaultbinmode
odbc.defaultbinmode = 1

[MySQL]
; Allow or prevent persistent links.
mysql.allow_persistent = Off

; Maximum number of persistent links. -1 means no limit.
mysql.max_persistent = -1

; Maximum number of links (persistent + non-persistent). -1 means no limit.
mysql.max_links = -1

; Default port number for mysql_connect(). If unset, mysql_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
; at MYSQL_PORT.
mysql.default_port =

; Default socket name for local MySQL connects. If empty, uses the built-in
; MySQL defaults.
mysql.default_socket =

; Default host for mysql_connect() (doesn't apply in safe mode).
mysql.default_host =

; Default user for mysql_connect() (doesn't apply in safe mode).
mysql.default_user =

; Default password for mysql_connect() (doesn't apply in safe mode).
; Note that this is generally a *bad* idea to store passwords in this file.
; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password")
; and reveal this password! And of course, any users with read access to this
; file will be able to reveal the password as well.
mysql.default_password =

; Maximum time (in seconds) for connect timeout. -1 means no limit
mysql.connect_timeout = 60

; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
; SQL-Errors will be displayed.
mysql.trace_mode = Off

[mSQL]
; Allow or prevent persistent links.
msql.allow_persistent = Off

; Maximum number of persistent links. -1 means no limit.
msql.max_persistent = -1

; Maximum number of links (persistent+non persistent). -1 means no limit.
msql.max_links = -1

[PostgresSQL]
; Allow or prevent persistent links.
pgsql.allow_persistent = Off

; Detect broken persistent links always with pg_pconnect(). Need a little overhead.
pgsql.auto_reset_persistent = Off

; Maximum number of persistent links. -1 means no limit.
pgsql.max_persistent = -1

; Maximum number of links (persistent+non persistent). -1 means no limit.
pgsql.max_links = -1

; Ignore PostgreSQL backends Notice message or not.
pgsql.ignore_notice = 0

; Log PostgreSQL backends Noitce message or not.
; Unless pgsql.ignore_notice=0, module cannot log notice message.
pgsql.log_notice = 0

[Sybase]
; Allow or prevent persistent links.
sybase.allow_persistent = On

; Maximum number of persistent links. -1 means no limit.
sybase.max_persistent = -1

; Maximum number of links (persistent + non-persistent). -1 means no limit.
sybase.max_links = -1

;sybase.interface_file = "/usr/sybase/interfaces"

; Minimum error severity to display.
sybase.min_error_severity = 10

; Minimum message severity to display.
sybase.min_message_severity = 10

; Compatability mode with old versions of PHP 3.0.
; If on, this will cause PHP to automatically assign types to results according
; to their Sybase type, instead of treating them all as strings. This
; compatibility mode will probably not stay around forever, so try applying
; whatever necessary changes to your code, and turn it off.
sybase.compatability_mode = Off

[Sybase-CT]
; Allow or prevent persistent links.
sybct.allow_persistent = On

; Maximum number of persistent links. -1 means no limit.
sybct.max_persistent = -1

; Maximum number of links (persistent + non-persistent). -1 means no limit.
sybct.max_links = -1

; Minimum server message severity to display.
sybct.min_server_severity = 10

; Minimum client message severity to display.
sybct.min_client_severity = 10

[dbx]
; returned column names can be converted for compatibility reasons
; possible values for dbx.colnames_case are
; "unchanged" (default, if not set)
; "lowercase"
; "uppercase"
; the recommended default is either upper- or lowercase, but
; unchanged is currently set for backwards compatibility
dbx.colnames_case = "unchanged"

[bcmath]
; Number of decimal digits for all bcmath functions.
bcmath.scale = 0

[browscap]
;browscap = extra/browscap.ini

[Informix]
; Default host for ifx_connect() (doesn't apply in safe mode).
ifx.default_host =

; Default user for ifx_connect() (doesn't apply in safe mode).
ifx.default_user =

; Default password for ifx_connect() (doesn't apply in safe mode).
ifx.default_password =

; Allow or prevent persistent links.
ifx.allow_persistent = On

; Maximum number of persistent links. -1 means no limit.
ifx.max_persistent = -1

; Maximum number of links (persistent + non-persistent). -1 means no limit.
ifx.max_links = -1

; If on, select statements return the contents of a text blob instead of its id.
ifx.textasvarchar = 0

; If on, select statements return the contents of a byte blob instead of its id.
ifx.byteasvarchar = 0

; Trailing blanks are stripped from fixed-length char columns. May help the
; life of Informix SE users.
ifx.charasvarchar = 0

; If on, the contents of text and byte blobs are dumped to a file instead of
; keeping them in memory.
ifx.blobinfile = 0

; NULL's are returned as empty strings, unless this is set to 1. In that case,
; NULL's are returned as string 'NULL'.
ifx.nullformat = 0

[Session]
; Handler used to store/retrieve data.
session.save_handler = files

; Argument passed to save_handler. In the case of files, this is the path
; where data files are stored. Note: Windows users have to change this
; variable in order to use PHP's session functions.
; As of PHP 4.0.1, you can define the path as:
;   session.save_path = "N;/path"
; where N is an integer. Instead of storing all the session files in
; /path, what this will do is use subdirectories N-levels deep, and
; store the session data in those directories. This is useful if you
; or your OS have problems with lots of files in one directory, and is
; a more efficient layout for servers that handle lots of sessions.
; NOTE 1: PHP will not create this directory structure automatically.
;     You can use the script in the ext/session dir for that purpose.
; NOTE 2: See the section on garbage collection below if you choose to
;     use subdirectories for session storage
session.save_path = /tmp

; Whether to use cookies.
session.use_cookies = 1

; This option enables administrators to make their users invulnerable to
; attacks which involve passing session ids in URLs; defaults to 0.
; session.use_only_cookies = 1

; Name of the session (used as cookie name).
session.name = PHPSESSID

; Initialize session on request startup.
session.auto_start = 0

; Lifetime in seconds of cookie or, if 0, until browser is restarted.
session.cookie_lifetime = 0

; The path for which the cookie is valid.
session.cookie_path = /

; The domain for which the cookie is valid.
session.cookie_domain =

; Handler used to serialize data. php is the standard serializer of PHP.
session.serialize_handler = php

; Define the probability that the 'garbage collection' process is started
; on every session initialization.
; The probability is calculated by using gc_probability/gc_divisor,
; e.g. 1/100 means there is a 1% chance that the GC process starts
; on each request.

session.gc_probability = 1
session.gc_divisor   = 100

; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
session.gc_maxlifetime = 1440

; NOTE: If you are using the subdirectory option for storing session files
;    (see session.save_path above), then garbage collection does *not*
;    happen automatically. You will need to do your own garbage
;    collection through a shell script, cron entry, or some other method.
;    For example, the following script would is the equivalent of
;    setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
;     cd /path/to/sessions; find -cmin +24 | xargs rm

; PHP 4.2 and less have an undocumented feature/bug that allows you to
; to initialize a session variable in the global scope, albeit register_globals
; is disabled. PHP 4.3 and later will warn you, if this feature is used.
; You can disable the feature and the warning separately. At this time,
; the warning is only displayed, if bug_compat_42 is enabled.

session.bug_compat_42 = 1
session.bug_compat_warn = 1

; Check HTTP Referer to invalidate externally stored URLs containing ids.
; HTTP_REFERER has to contain this substring for the session to be
; considered as valid.
session.referer_check =

; How many bytes to read from the file.
session.entropy_length = 0

; Specified here to create the session id.
session.entropy_file =

;session.entropy_length = 16

;session.entropy_file = /dev/urandom

; Set to {nocache,private,public,} to determine HTTP caching aspects
; or leave this empty to avoid sending anti-caching headers.
session.cache_limiter = nocache

; Document expires after n minutes.
session.cache_expire = 180

; trans sid support is disabled by default.
; Use of trans sid may risk your users security.
; Use this option with caution.
; - User may send URL contains active session ID
;  to other person via. email/irc/etc.
; - URL that contains active session ID may be stored
;  in publically accessible computer.
; - User may access your site with the same session ID
;  always using URL stored in browser's history or bookmarks.
session.use_trans_sid = 0

; The URL rewriter will look for URLs in a defined set of HTML tags.
; form/fieldset are special; if you include them here, the rewriter will
; add a hidden <input> field with the info which is otherwise appended
; to URLs. If you want XHTML conformity, remove the form entry.
; Note that all valid entries require a "=", even if no value follows.
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="

[MSSQL]
; Allow or prevent persistent links.
mssql.allow_persistent = On

; Maximum number of persistent links. -1 means no limit.
mssql.max_persistent = -1

; Maximum number of links (persistent+non persistent). -1 means no limit.
mssql.max_links = -1

; Minimum error severity to display.
mssql.min_error_severity = 10

; Minimum message severity to display.
mssql.min_message_severity = 10

; Compatability mode with old versions of PHP 3.0.
mssql.compatability_mode = Off

; Connect timeout
;mssql.connect_timeout = 5

; Query timeout
;mssql.timeout = 60

; Valid range 0 - 2147483647. Default = 4096.
;mssql.textlimit = 4096

; Valid range 0 - 2147483647. Default = 4096.
;mssql.textsize = 4096

; Limits the number of records in each batch. 0 = all records in one batch.
;mssql.batchsize = 0

; Specify how datetime and datetim4 columns are returned
; On => Returns data converted to SQL server settings
; Off => Returns values as YYYY-MM-DD hh:mm:ss
;mssql.datetimeconvert = On

; Use NT authentication when connecting to the server
mssql.secure_connection = Off

; Specify max number of processes. Default = 25
;mssql.max_procs = 25

[Assertion]
; Assert(expr); active by default.
;assert.active = On

; Issue a PHP warning for each failed assertion.
;assert.warning = On

; Don't bail out by default.
;assert.bail = Off

; User-function to be called if an assertion fails.
;assert.callback = 0

; Eval the expression with current error_reporting(). Set to true if you want
; error_reporting(E_WARNING | E_NOTICE) around the eval().
;assert.quiet_eval = 0

[Ingres II]
; Allow or prevent persistent links.
ingres.allow_persistent = On

; Maximum number of persistent links. -1 means no limit.
ingres.max_persistent = -1

; Maximum number of links, including persistents. -1 means no limit.
ingres.max_links = -1

; Default database (format: [node_id::]dbname[/srv_class]).
ingres.default_database =

; Default user.
ingres.default_user =

; Default password.
ingres.default_password =

[Verisign Payflow Pro]
; Default Payflow Pro server.
pfpro.defaulthost = "test-payflow.verisign.com"

; Default port to connect to.
pfpro.defaultport = 443

; Default timeout in seconds.
pfpro.defaulttimeout = 30

; Default proxy IP address (if required).
;pfpro.proxyaddress =

; Default proxy port.
;pfpro.proxyport =

; Default proxy logon.
;pfpro.proxylogon =

; Default proxy password.
;pfpro.proxypassword =

[com]
; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
;com.typelib_file =
; allow Distributed-COM calls
;com.allow_dcom = true
; autoregister constants of a components typlib on com_load()
;com.autoregister_typelib = true
; register constants casesensitive
;com.autoregister_casesensitive = false
; show warnings on duplicate constat registrations
;com.autoregister_verbose = true

[Printer]
;printer.default_printer = ""

[mbstring]
; language for internal character representation.
;mbstring.language = Japanese

; internal/script encoding.
; Some encoding cannot work as internal encoding.
; (e.g. SJIS, BIG5, ISO-2022-*)
;mbstring.internal_encoding = EUC-JP

; http input encoding.
;mbstring.http_input = auto

; http output encoding. mb_output_handler must be
; registered as output buffer to function
;mbstring.http_output = SJIS

; enable automatic encoding translation accoding to
; mbstring.internal_encoding setting. Input chars are
; converted to internal encoding by setting this to On.
; Note: Do _not_ use automatic encoding translation for
;    portable libs/applications.
;mbstring.encoding_translation = Off

; automatic encoding detection order.
; auto means
;mbstring.detect_order = auto

; substitute_character used when character cannot be converted
; one from another
;mbstring.substitute_character = none;

; overload(replace) single byte functions by mbstring functions.
; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
; etc. Possible values are 0,1,2,4 or combination of them.
; For example, 7 for overload everything.
; 0: No overload
; 1: Overload mail() function
; 2: Overload str*() functions
; 4: Overload ereg*() functions
;mbstring.func_overload = 0

[FrontBase]
;fbsql.allow_persistent = On
;fbsql.autocommit = On
;fbsql.default_database =
;fbsql.default_database_password =
;fbsql.default_host =
;fbsql.default_password =
;fbsql.default_user = "_SYSTEM"
;fbsql.generate_warnings = Off
;fbsql.max_connections = 128
;fbsql.max_links = 128
;fbsql.max_persistent = -1
;fbsql.max_results = 128
;fbsql.batchSize = 1000

[Crack]
; Modify the setting below to match the directory location of the cracklib
; dictionary files. Include the base filename, but not the file extension.
; crack.default_dictionary = "c:\php\lib\cracklib_dict"

[exif]
; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.
; With mbstring support this will automatically be converted into the encoding
; given by corresponding encode setting. When empty mbstring.internal_encoding
; is used. For the decode settings you can distinguish between motorola and
; intel byte order. A decode setting cannot be empty.
;exif.encode_unicode = ISO-8859-15
;exif.decode_unicode_motorola = UCS-2BE
;exif.decode_unicode_intel  = UCS-2LE
;exif.encode_jis =
;exif.decode_jis_motorola = JIS
;exif.decode_jis_intel  = JIS

; Local Variables:
; tab-width: 4
; End:

[Zend]




extension=magickwand.so
extension=imagick.so
;extension=mailparse.so

extension=pdo.so
extension=pdo_sqlite.so
extension=sqlite.so
extension=pdo_mysql.so
;extension=uploadprogress.so
;extension=gnupg.so
;extension=mailparse.so
;extension=fileinfo.so

;extension=mongo.so
;extension=http.so
extension=phar.so
extension="ixed.5.2.lin"
zend_extension="/usr/local/Zend/lib/Optimizer-3.3.9/php-5.2.x/ZendOptimizer.so"
  1. [PHP]
  2. ;;;;;;;;;;;
  3. ; WARNING ;
  4. ;;;;;;;;;;;
  5. ; This is the default settings file for new PHP installations.
  6. ; By default, PHP installs itself with a configuration suitable for
  7. ; development purposes, and *NOT* for production purposes.
  8. ; For several security-oriented considerations that should be taken
  9. ; before going online with your site, please consult php.ini-recommended
  10. ; and http://php.net/manual/en/security.php.
  11. ;;;;;;;;;;;;;;;;;;;
  12. ; About this file ;
  13. ;;;;;;;;;;;;;;;;;;;
  14. ; This file controls many aspects of PHP's behavior. In order for PHP to
  15. ; read it, it must be named 'php.ini'. PHP looks for it in the current
  16. ; working directory, in the path designated by the environment variable
  17. ; PHPRC, and in the path that was defined in compile time (in that order).
  18. ; Under Windows, the compile-time path is the Windows directory. The
  19. ; path in which the php.ini file is looked for can be overridden using
  20. ; the -c argument in command line mode.
  21. ;
  22. ; The syntax of the file is extremely simple. Whitespace and Lines
  23. ; beginning with a semicolon are silently ignored (as you probably guessed).
  24. ; Section headers (e.g. [Foo]) are also silently ignored, even though
  25. ; they might mean something in the future.
  26. ;
  27. ; Directives are specified using the following syntax:
  28. ; directive = value
  29. ; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
  30. ;
  31. ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
  32. ; of the INI constants (On, Off, True, False, Yes, No and None) or an expression
  33. ; (e.g. E_ALL & ~E_NOTICE), or a quoted string ("foo").
  34. ;
  35. ; Expressions in the INI file are limited to bitwise operators and parentheses:
  36. ; |    bitwise OR
  37. ; &    bitwise AND
  38. ; ~    bitwise NOT
  39. ; !    boolean NOT
  40. ;
  41. ; Boolean flags can be turned on using the values 1, On, True or Yes.
  42. ; They can be turned off using the values 0, Off, False or No.
  43. ;
  44. ; An empty string can be denoted by simply not writing anything after the equal
  45. ; sign, or by using the None keyword:
  46. ;
  47. ; foo =     ; sets foo to an empty string
  48. ; foo = none  ; sets foo to an empty string
  49. ; foo = "none" ; sets foo to the string 'none'
  50. ;
  51. ; If you use constants in your value, and these constants belong to a
  52. ; dynamically loaded extension (either a PHP extension or a Zend extension),
  53. ; you may only use these constants *after* the line that loads the extension.
  54. ;
  55. ; All the values in the php.ini-dist file correspond to the builtin
  56. ; defaults (that is, if no php.ini is used, or if you delete these lines,
  57. ; the builtin defaults will be identical).
  58. ;;;;;;;;;;;;;;;;;;;;
  59. ; Language Options ;
  60. ;;;;;;;;;;;;;;;;;;;;
  61. ; Enable the PHP scripting language engine under Apache.
  62. engine = On
  63. ; Allow the <? tag. Otherwise, only <?php and <script> tags are recognized.
  64. ; NOTE: Using short tags should be avoided when developing applications or
  65. ; libraries that are meant for redistribution, or deployment on PHP
  66. ; servers which are not under your control, because short tags may not
  67. ; be supported on the target server. For portable, redistributable code,
  68. ; be sure not to use short tags.
  69. short_open_tag = On
  70. ; Allow ASP-style <% %> tags.
  71. asp_tags = Off
  72. ; The number of significant digits displayed in floating point numbers.
  73. precision  = 12
  74. ; Enforce year 2000 compliance (will cause problems with non-compliant browsers)
  75. y2k_compliance = On
  76. ; Output buffering allows you to send header lines (including cookies) even
  77. ; after you send body content, at the price of slowing PHP's output layer a
  78. ; bit. You can enable output buffering during runtime by calling the output
  79. ; buffering functions. You can also enable output buffering for all files by
  80. ; setting this directive to On. If you wish to limit the size of the buffer
  81. ; to a certain size - you can use a maximum number of bytes instead of 'On', as
  82. ; a value for this directive (e.g., output_buffering=4096).
  83. output_buffering = On
  84. ; You can redirect all of the output of your scripts to a function. For
  85. ; example, if you set output_handler to "mb_output_handler", character
  86. ; encoding will be transparently converted to the specified encoding.
  87. ; Setting any output handler automatically turns on output buffering.
  88. ; Note: People who wrote portable scripts should not depend on this ini
  89. ;    directive. Instead, explicitly set the output handler using ob_start().
  90. ;    Using this ini directive may cause problems unless you know what script
  91. ;    is doing.
  92. ; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler"
  93. ;    and you cannot use both "ob_gzhandler" and "zlib.output_compression".
  94. ;output_handler =
  95. ; Transparent output compression using the zlib library
  96. ; Valid values for this option are 'off', 'on', or a specific buffer size
  97. ; to be used for compression (default is 4KB)
  98. ; Note: Resulting chunk size may vary due to nature of compression. PHP
  99. ;    outputs chunks that are few hundreds bytes each as a result of
  100. ;    compression. If you prefer a larger chunk size for better
  101. ;    performance, enable output_buffering in addition.
  102. ; Note: You need to use zlib.output_handler instead of the standard
  103. ;    output_handler, or otherwise the output will be corrupted.
  104. zlib.output_compression = Off
  105. ; You cannot specify additional output handlers if zlib.output_compression
  106. ; is activated here. This setting does the same as output_handler but in
  107. ; a different order.
  108. ;zlib.output_handler =
  109. ; Implicit flush tells PHP to tell the output layer to flush itself
  110. ; automatically after every output block. This is equivalent to calling the
  111. ; PHP function flush() after each and every call to print() or echo() and each
  112. ; and every HTML block. Turning this option on has serious performance
  113. ; implications and is generally recommended for debugging purposes only.
  114. implicit_flush = Off
  115. ; The unserialize callback function will be called (with the undefined class'
  116. ; name as parameter), if the unserializer finds an undefined class
  117. ; which should be instanciated.
  118. ; A warning appears if the specified function is not defined, or if the
  119. ; function doesn't include/implement the missing class.
  120. ; So only set this entry, if you really want to implement such a
  121. ; callback-function.
  122. unserialize_callback_func=
  123. ; When floats & doubles are serialized store serialize_precision significant
  124. ; digits after the floating point. The default value ensures that when floats
  125. ; are decoded with unserialize, the data will remain the same.
  126. serialize_precision = 100
  127. ; Whether to enable the ability to force arguments to be passed by reference
  128. ; at function call time. This method is deprecated and is likely to be
  129. ; unsupported in future versions of PHP/Zend. The encouraged method of
  130. ; specifying which arguments should be passed by reference is in the function
  131. ; declaration. You're encouraged to try and turn this option Off and make
  132. ; sure your scripts work properly with it in order to ensure they will work
  133. ; with future versions of the language (you will receive a warning each time
  134. ; you use this feature, and the argument will be passed by value instead of by
  135. ; reference).
  136. allow_call_time_pass_reference = On
  137. ; Safe Mode
  138. ;
  139. safe_mode = Off
  140. ; By default, Safe Mode does a UID compare check when
  141. ; opening files. If you want to relax this to a GID compare,
  142. ; then turn on safe_mode_gid.
  143. safe_mode_gid = Off
  144. ; When safe_mode is on, UID/GID checks are bypassed when
  145. ; including files from this directory and its subdirectories.
  146. ; (directory must also be in include_path or full path must
  147. ; be used when including)
  148. safe_mode_include_dir =
  149. ; When safe_mode is on, only executables located in the safe_mode_exec_dir
  150. ; will be allowed to be executed via the exec family of functions.
  151. safe_mode_exec_dir =
  152. ; Setting certain environment variables may be a potential security breach.
  153. ; This directive contains a comma-delimited list of prefixes. In Safe Mode,
  154. ; the user may only alter environment variables whose names begin with the
  155. ; prefixes supplied here. By default, users will only be able to set
  156. ; environment variables that begin with PHP_ (e.g. PHP_FOO=BAR).
  157. ;
  158. ; Note: If this directive is empty, PHP will let the user modify ANY
  159. ; environment variable!
  160. safe_mode_allowed_env_vars = PHP_
  161. ; This directive contains a comma-delimited list of environment variables that
  162. ; the end user won't be able to change using putenv(). These variables will be
  163. ; protected even if safe_mode_allowed_env_vars is set to allow to change them.
  164. safe_mode_protected_env_vars = LD_LIBRARY_PATH
  165. ; open_basedir, if set, limits all file operations to the defined directory
  166. ; and below. This directive makes most sense if used in a per-directory
  167. ; or per-virtualhost web server configuration file. This directive is
  168. ; *NOT* affected by whether Safe Mode is turned On or Off.
  169. ;open_basedir =
  170. ; This directive allows you to disable certain functions for security reasons.
  171. ; It receives a comma-delimited list of function names. This directive is
  172. ; *NOT* affected by whether Safe Mode is turned On or Off.
  173. disable_functions = dl
  174. ; This directive allows you to disable certain classes for security reasons.
  175. ; It receives a comma-delimited list of class names. This directive is
  176. ; *NOT* affected by whether Safe Mode is turned On or Off.
  177. disable_classes =
  178. ; Colors for Syntax Highlighting mode. Anything that's acceptable in
  179. ; <font color="??????"> would work.
  180. ;highlight.string = #DD0000
  181. ;highlight.comment = #FF9900
  182. ;highlight.keyword = #007700
  183. ;highlight.bg   = #FFFFFF
  184. ;highlight.default = #0000BB
  185. ;highlight.html  = #000000
  186. ;
  187. ; Misc
  188. ;
  189. ; Decides whether PHP may expose the fact that it is installed on the server
  190. ; (e.g. by adding its signature to the Web server header). It is no security
  191. ; threat in any way, but it makes it possible to determine whether you use PHP
  192. ; on your server or not.
  193. expose_php = Off
  194. ;;;;;;;;;;;;;;;;;;;
  195. ; Resource Limits ;
  196. ;;;;;;;;;;;;;;;;;;;
  197. max_execution_time = 600
  198. max_input_time = 60
  199. memory_limit = 64M
  200. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  201. ; Error handling and logging ;
  202. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  203. ; error_reporting is a bit-field. Or each number up to get desired error
  204. ; reporting level
  205. ; E_ALL       - All errors and warnings
  206. ; E_ERROR      - fatal run-time errors
  207. ; E_WARNING     - run-time warnings (non-fatal errors)
  208. ; E_PARSE      - compile-time parse errors
  209. ; E_NOTICE     - run-time notices (these are warnings which often result
  210. ;           from a bug in your code, but it's possible that it was
  211. ;           intentional (e.g., using an uninitialized variable and
  212. ;           relying on the fact it's automatically initialized to an
  213. ;           empty string)
  214. ; E_CORE_ERROR   - fatal errors that occur during PHP's initial startup
  215. ; E_CORE_WARNING  - warnings (non-fatal errors) that occur during PHP's
  216. ;           initial startup
  217. ; E_COMPILE_ERROR  - fatal compile-time errors
  218. ; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
  219. ; E_USER_ERROR   - user-generated error message
  220. ; E_USER_WARNING  - user-generated warning message
  221. ; E_USER_NOTICE   - user-generated notice message
  222. ;
  223. ; Examples:
  224. ;
  225. ;  - Show all errors, except for notices
  226. ;
  227. ;error_reporting = E_ALL & ~E_NOTICE
  228. ;
  229. ;  - Show only errors
  230. ;
  231. ;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
  232. ;
  233. ;  - Show all errors except for notices
  234. ;
  235. error_reporting = E_ALL & ~E_NOTICE
  236. ; Print out errors (as a part of the output). For production web sites,
  237. ; you're strongly encouraged to turn this feature off, and use error logging
  238. ; instead (see below). Keeping display_errors enabled on a production web site
  239. ; may reveal security information to end users, such as file paths on your Web
  240. ; server, your database schema or other information.
  241. display_errors = On
  242. ; Even when display_errors is on, errors that occur during PHP's startup
  243. ; sequence are not displayed. It's strongly recommended to keep
  244. ; display_startup_errors off, except for when debugging.
  245. display_startup_errors = Off
  246. ; Log errors into a log file (server-specific log, stderr, or error_log (below))
  247. ; As stated above, you're strongly advised to use error logging in place of
  248. ; error displaying on production web sites.
  249. log_errors = Off;
  250. ; Set maximum length of log_errors. In error_log information about the source is
  251. ; added. The default is 1024 and 0 allows to not apply any maximum length at all.
  252. log_errors = Off;
  253. ; Do not log repeated messages. Repeated errors must occur in same file on same
  254. ; line until ignore_repeated_source is set true.
  255. ignore_repeated_errors = Off
  256. ; Ignore source of message when ignoring repeated messages. When this setting
  257. ; is On you will not log errors with repeated messages from different files or
  258. ; sourcelines.
  259. ignore_repeated_source = Off
  260. ; If this parameter is set to Off, then memory leaks will not be shown (on
  261. ; stdout or in the log). This has only effect in a debug compile, and if
  262. ; error reporting includes E_WARNING in the allowed list
  263. report_memleaks = On
  264. ; Store the last error/warning message in $php_errormsg (boolean).
  265. track_errors = Off
  266. ; Disable the inclusion of HTML tags in error messages.
  267. ;html_errors = Off
  268. ; If html_errors is set On PHP produces clickable error messages that direct
  269. ; to a page describing the error or function causing the error in detail.
  270. ; You can download a copy of the PHP manual from http://www.php.net/docs.php
  271. ; and change docref_root to the base URL of your local copy including the
  272. ; leading '/'. You must also specify the file extension being used including
  273. ; the dot.
  274. ;docref_root = "/phpmanual/"
  275. ;docref_ext = .html
  276. ; String to output before an error message.
  277. ;error_prepend_string = "<font color=ff0000>"
  278. ; String to output after an error message.
  279. ;error_append_string = "</font>"
  280. ; Log errors to specified file.
  281. error_log = error_log;
  282. ; Log errors to syslog (Event Log on NT, not valid in Windows 95).
  283. error_log = error_log;
  284. ;;;;;;;;;;;;;;;;;
  285. ; Data Handling ;
  286. ;;;;;;;;;;;;;;;;;
  287. ;
  288. ; Note - track_vars is ALWAYS enabled as of PHP 4.0.3
  289. ; The separator used in PHP generated URLs to separate arguments.
  290. ; Default is "&".
  291. ;arg_separator.output = "&amp;"
  292. ; List of separator(s) used by PHP to parse input URLs into variables.
  293. ; Default is "&".
  294. ; NOTE: Every character in this directive is considered as separator!
  295. ;arg_separator.input = ";&"
  296. ; This directive describes the order in which PHP registers GET, POST, Cookie,
  297. ; Environment and Built-in variables (G, P, C, E & S respectively, often
  298. ; referred to as EGPCS or GPC). Registration is done from left to right, newer
  299. ; values override older values.
  300. variables_order = "EGPCS"
  301. ; Whether or not to register the EGPCS variables as global variables. You may
  302. ; want to turn this off if you don't want to clutter your scripts' global scope
  303. ; with user data. This makes most sense when coupled with track_vars - in which
  304. ; case you can access all of the GPC variables through the $HTTP_*_VARS[],
  305. ; variables.
  306. ;
  307. ; You should do your best to write your scripts so that they do not require
  308. ; register_globals to be on; Using form variables as globals can easily lead
  309. ; to possible security problems, if the code is not very well thought of.
  310. register_globals = Off
  311. ; This directive tells PHP whether to declare the argv&argc variables (that
  312. ; would contain the GET information). If you don't use these variables, you
  313. ; should turn it off for increased performance.
  314. register_argc_argv = On
  315. ; Maximum size of POST data that PHP will accept.
  316. post_max_size = 64M
  317. ; This directive is deprecated. Use variables_order instead.
  318. gpc_order = "GPC"
  319. ; Magic quotes
  320. ;
  321. ; Magic quotes for incoming GET/POST/Cookie data.
  322. magic_quotes_gpc = Off
  323. ; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
  324. magic_quotes_runtime = Off
  325. ; Use Sybase-style magic quotes (escape ' with '' instead of \').
  326. magic_quotes_sybase = Off
  327. ; Automatically add files before or after any PHP document.
  328. auto_prepend_file =
  329. auto_append_file =
  330. ; As of 4.0b4, PHP always outputs a character encoding by default in
  331. ; the Content-type: header. To disable sending of the charset, simply
  332. ; set it to be empty.
  333. ;
  334. ; PHP's built-in default is text/html
  335. default_mimetype = "text/html"
  336. ;default_charset = "iso-8859-1"
  337. ; Always populate the $HTTP_RAW_POST_DATA variable.
  338. ;always_populate_raw_post_data = On
  339. ;;;;;;;;;;;;;;;;;;;;;;;;;
  340. ; Paths and Directories ;
  341. ;;;;;;;;;;;;;;;;;;;;;;;;;
  342. ; UNIX: "/path1:/path2"
  343. include_path = ".:/usr/lib/php:/usr/local/lib/php";
  344. ;
  345. ; Windows: "\path1;\path2"
  346. ;include_path = ".:/usr/lib/php:/usr/local/lib/php"  ;
  347. ; The root of the PHP pages, used only if nonempty.
  348. ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
  349. ; if you are running php as a CGI under any web server (other than IIS)
  350. ; see documentation for security issues. The alternate is to use the
  351. ; cgi.force_redirect configuration below
  352. doc_root =
  353. ; The directory under which PHP opens the script using /~username used only
  354. ; if nonempty.
  355. user_dir =
  356. ; Directory in which the loadable extensions (modules) reside.
  357. extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613"
  358. zend_extension="/usr/local/IonCube/ioncube_loader_lin_5.2.so"
  359. ;zend_extension="/usr/local/IonCube/ioncube_loader_lin_5.2.so"
  360. ; Whether or not to enable the dl() function. The dl() function does NOT work
  361. ; properly in multithreaded servers, such as IIS or Zeus, and is automatically
  362. ; disabled on them.
  363. enable_dl = Off
  364. ; cgi.force_redirect is necessary to provide security running PHP as a CGI under
  365. ; most web servers. Left undefined, PHP turns this on by default. You can
  366. ; turn it off here AT YOUR OWN RISK
  367. ; **You CAN safely turn this off for IIS, in fact, you MUST.**
  368. ; cgi.force_redirect = 1
  369. ; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
  370. ; every request.
  371. ; cgi.nph = 1
  372. ; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
  373. ; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
  374. ; will look for to know it is OK to continue execution. Setting this variable MAY
  375. ; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
  376. ; cgi.redirect_status_env = ;
  377. ; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP's
  378. ; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
  379. ; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting
  380. ; this to 1 will cause PHP CGI to fix it's paths to conform to the spec. A setting
  381. ; of zero causes PHP to behave as before. Default is zero. You should fix your scripts
  382. ; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
  383. ; cgi.fix_pathinfo=0
  384. ; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
  385. ; security tokens of the calling client. This allows IIS to define the
  386. ; security context that the request runs under. mod_fastcgi under Apache
  387. ; does not currently support this feature (03/17/2002)
  388. ; Set to 1 if running under IIS. Default is zero.
  389. ; fastcgi.impersonate = 1;
  390. ; cgi.rfc2616_headers configuration option tells PHP what type of headers to
  391. ; use when sending HTTP response code. If it's set 0 PHP sends Status: header that
  392. ; is supported by Apache. When this option is set to 1 PHP will send
  393. ; RFC2616 compliant header.
  394. ; Default is zero.
  395. ;cgi.rfc2616_headers = 0
  396. ;;;;;;;;;;;;;;;;
  397. ; File Uploads ;
  398. ;;;;;;;;;;;;;;;;
  399. ; Whether to allow HTTP file uploads.
  400. file_uploads = On
  401. ; Temporary directory for HTTP uploaded files (will use system default if not
  402. ; specified).
  403. ;upload_tmp_dir =
  404. ; Maximum allowed size for uploaded files.
  405. upload_max_filesize = 64M
  406. ;;;;;;;;;;;;;;;;;;
  407. ; Fopen wrappers ;
  408. ;;;;;;;;;;;;;;;;;;
  409. ; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
  410. allow_url_fopen = On
  411. allow_url_include = On
  412. max_file_uploads = 20
  413. ; Define the anonymous ftp password (your email address)
  414. ;from="john@doe.com"
  415. ; Define the User-Agent string
  416. ; user_agent="PHP"
  417. ; Default timeout for socket based streams (seconds)
  418. default_socket_timeout = 60
  419. ; If your scripts have to deal with files from Macintosh systems,
  420. ; or you are running on a Mac and need to deal with files from
  421. ; unix or win32 systems, setting this flag will cause PHP to
  422. ; automatically detect the EOL character in those files so that
  423. ; fgets() and file() will work regardless of the source of the file.
  424. ; auto_detect_line_endings = Off
  425. ;;;;;;;;;;;;;;;;;;;;;;
  426. ; Dynamic Extensions ;
  427. ;;;;;;;;;;;;;;;;;;;;;;
  428. ;
  429. ; If you wish to have an extension loaded automatically, use the following
  430. ; syntax:
  431. ;
  432. ;  extension=modulename.extension
  433. ;
  434. ; For example, on Windows:
  435. ;
  436. ;  extension=msql.dll
  437. ;
  438. ; ... or under UNIX:
  439. ;
  440. ;  extension=msql.so
  441. ;
  442. ; Note that it should be the name of the module only; no directory information
  443. ; needs to go here. Specify the location of the extension with the
  444. ; extension_dir directive above.
  445. ;Windows Extensions
  446. ;Note that MySQL and ODBC support is now built in, so no dll is needed for it.
  447. ;
  448. ;extension=php_bz2.dll
  449. ;extension=php_cpdf.dll
  450. ;extension=php_crack.dll
  451. ;extension=php_curl.dll
  452. ;extension=php_db.dll
  453. ;extension=php_dba.dll
  454. ;extension=php_dbase.dll
  455. ;extension=php_dbx.dll
  456. ;extension=php_domxml.dll
  457. ;extension=php_exif.dll
  458. ;extension=php_fdf.dll
  459. ;extension=php_filepro.dll
  460. ;extension=php_gd2.dll
  461. ;extension=php_gettext.dll
  462. ;extension=php_hyperwave.dll
  463. ;extension=php_iconv.dll
  464. ;extension=php_ifx.dll
  465. ;extension=php_iisfunc.dll
  466. ;extension=php_imap.dll
  467. ;extension=php_interbase.dll
  468. ;extension=php_java.dll
  469. ;extension=php_ldap.dll
  470. ;extension=php_mbstring.dll
  471. ;extension=php_mcrypt.dll
  472. ;extension=php_mhash.dll
  473. ;extension=php_mime_magic.dll
  474. ;extension=php_ming.dll
  475. ;extension=php_mssql.dll
  476. ;extension=php_msql.dll
  477. ;extension=php_oci8.dll
  478. ;extension=php_openssl.dll
  479. ;extension=php_oracle.dll
  480. ;extension=php_pdf.dll
  481. ;extension=php_pgsql.dll
  482. ;extension=php_printer.dll
  483. ;extension=php_shmop.dll
  484. ;extension=php_snmp.dll
  485. ;extension=php_sockets.dll
  486. ;extension=php_sybase_ct.dll
  487. ;extension=php_w32api.dll
  488. ;extension=php_xmlrpc.dll
  489. ;extension=php_xslt.dll
  490. ;extension=php_yaz.dll
  491. ;extension=php_zip.dll
  492. ;;;;;;;;;;;;;;;;;;;
  493. ; Module Settings ;
  494. ;;;;;;;;;;;;;;;;;;;
  495. [Syslog]
  496. ; Whether or not to define the various syslog variables (e.g. $LOG_PID,
  497. ; $LOG_CRON, etc.). Turning it off is a good idea performance-wise. In
  498. ; runtime, you can define these variables by calling define_syslog_variables().
  499. define_syslog_variables = Off
  500. [mail function]
  501. ; For Win32 only.
  502. ;SMTP = localhost;
  503. smtp_port = 25
  504. ; For Win32 only.
  505. ;sendmail_from = me@localhost.com;
  506. ; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
  507. sendmail_path = /usr/sbin/sendmail -t -i;
  508. [Java]
  509. ;java.class.path = .\php_java.jar
  510. ;java.home = c:\jdk
  511. ;java.library = c:\jdk\jre\bin\hotspot\jvm.dll
  512. ;java.library.path = .\
  513. [SQL]
  514. sql.safe_mode = Off
  515. [ODBC]
  516. ;odbc.default_db  = Not yet implemented
  517. ;odbc.default_user = Not yet implemented
  518. ;odbc.default_pw  = Not yet implemented
  519. ; Allow or prevent persistent links.
  520. odbc.allow_persistent = Off
  521. ; Check that a connection is still valid before reuse.
  522. odbc.check_persistent = Off
  523. ; Maximum number of persistent links. -1 means no limit.
  524. odbc.max_persistent = -1
  525. ; Maximum number of links (persistent + non-persistent). -1 means no limit.
  526. odbc.max_links = -1
  527. ; Handling of LONG fields. Returns number of bytes to variables. 0 means
  528. ; passthru.
  529. odbc.defaultlrl = 4096
  530. ; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char.
  531. ; See the documentation on odbc_binmode and odbc_longreadlen for an explanation
  532. ; of uodbc.defaultlrl and uodbc.defaultbinmode
  533. odbc.defaultbinmode = 1
  534. [MySQL]
  535. ; Allow or prevent persistent links.
  536. mysql.allow_persistent = Off
  537. ; Maximum number of persistent links. -1 means no limit.
  538. mysql.max_persistent = -1
  539. ; Maximum number of links (persistent + non-persistent). -1 means no limit.
  540. mysql.max_links = -1
  541. ; Default port number for mysql_connect(). If unset, mysql_connect() will use
  542. ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
  543. ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
  544. ; at MYSQL_PORT.
  545. mysql.default_port =
  546. ; Default socket name for local MySQL connects. If empty, uses the built-in
  547. ; MySQL defaults.
  548. mysql.default_socket =
  549. ; Default host for mysql_connect() (doesn't apply in safe mode).
  550. mysql.default_host =
  551. ; Default user for mysql_connect() (doesn't apply in safe mode).
  552. mysql.default_user =
  553. ; Default password for mysql_connect() (doesn't apply in safe mode).
  554. ; Note that this is generally a *bad* idea to store passwords in this file.
  555. ; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password")
  556. ; and reveal this password! And of course, any users with read access to this
  557. ; file will be able to reveal the password as well.
  558. mysql.default_password =
  559. ; Maximum time (in seconds) for connect timeout. -1 means no limit
  560. mysql.connect_timeout = 60
  561. ; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
  562. ; SQL-Errors will be displayed.
  563. mysql.trace_mode = Off
  564. [mSQL]
  565. ; Allow or prevent persistent links.
  566. msql.allow_persistent = Off
  567. ; Maximum number of persistent links. -1 means no limit.
  568. msql.max_persistent = -1
  569. ; Maximum number of links (persistent+non persistent). -1 means no limit.
  570. msql.max_links = -1
  571. [PostgresSQL]
  572. ; Allow or prevent persistent links.
  573. pgsql.allow_persistent = Off
  574. ; Detect broken persistent links always with pg_pconnect(). Need a little overhead.
  575. pgsql.auto_reset_persistent = Off
  576. ; Maximum number of persistent links. -1 means no limit.
  577. pgsql.max_persistent = -1
  578. ; Maximum number of links (persistent+non persistent). -1 means no limit.
  579. pgsql.max_links = -1
  580. ; Ignore PostgreSQL backends Notice message or not.
  581. pgsql.ignore_notice = 0
  582. ; Log PostgreSQL backends Noitce message or not.
  583. ; Unless pgsql.ignore_notice=0, module cannot log notice message.
  584. pgsql.log_notice = 0
  585. [Sybase]
  586. ; Allow or prevent persistent links.
  587. sybase.allow_persistent = On
  588. ; Maximum number of persistent links. -1 means no limit.
  589. sybase.max_persistent = -1
  590. ; Maximum number of links (persistent + non-persistent). -1 means no limit.
  591. sybase.max_links = -1
  592. ;sybase.interface_file = "/usr/sybase/interfaces"
  593. ; Minimum error severity to display.
  594. sybase.min_error_severity = 10
  595. ; Minimum message severity to display.
  596. sybase.min_message_severity = 10
  597. ; Compatability mode with old versions of PHP 3.0.
  598. ; If on, this will cause PHP to automatically assign types to results according
  599. ; to their Sybase type, instead of treating them all as strings. This
  600. ; compatibility mode will probably not stay around forever, so try applying
  601. ; whatever necessary changes to your code, and turn it off.
  602. sybase.compatability_mode = Off
  603. [Sybase-CT]
  604. ; Allow or prevent persistent links.
  605. sybct.allow_persistent = On
  606. ; Maximum number of persistent links. -1 means no limit.
  607. sybct.max_persistent = -1
  608. ; Maximum number of links (persistent + non-persistent). -1 means no limit.
  609. sybct.max_links = -1
  610. ; Minimum server message severity to display.
  611. sybct.min_server_severity = 10
  612. ; Minimum client message severity to display.
  613. sybct.min_client_severity = 10
  614. [dbx]
  615. ; returned column names can be converted for compatibility reasons
  616. ; possible values for dbx.colnames_case are
  617. ; "unchanged" (default, if not set)
  618. ; "lowercase"
  619. ; "uppercase"
  620. ; the recommended default is either upper- or lowercase, but
  621. ; unchanged is currently set for backwards compatibility
  622. dbx.colnames_case = "unchanged"
  623. [bcmath]
  624. ; Number of decimal digits for all bcmath functions.
  625. bcmath.scale = 0
  626. [browscap]
  627. ;browscap = extra/browscap.ini
  628. [Informix]
  629. ; Default host for ifx_connect() (doesn't apply in safe mode).
  630. ifx.default_host =
  631. ; Default user for ifx_connect() (doesn't apply in safe mode).
  632. ifx.default_user =
  633. ; Default password for ifx_connect() (doesn't apply in safe mode).
  634. ifx.default_password =
  635. ; Allow or prevent persistent links.
  636. ifx.allow_persistent = On
  637. ; Maximum number of persistent links. -1 means no limit.
  638. ifx.max_persistent = -1
  639. ; Maximum number of links (persistent + non-persistent). -1 means no limit.
  640. ifx.max_links = -1
  641. ; If on, select statements return the contents of a text blob instead of its id.
  642. ifx.textasvarchar = 0
  643. ; If on, select statements return the contents of a byte blob instead of its id.
  644. ifx.byteasvarchar = 0
  645. ; Trailing blanks are stripped from fixed-length char columns. May help the
  646. ; life of Informix SE users.
  647. ifx.charasvarchar = 0
  648. ; If on, the contents of text and byte blobs are dumped to a file instead of
  649. ; keeping them in memory.
  650. ifx.blobinfile = 0
  651. ; NULL's are returned as empty strings, unless this is set to 1. In that case,
  652. ; NULL's are returned as string 'NULL'.
  653. ifx.nullformat = 0
  654. [Session]
  655. ; Handler used to store/retrieve data.
  656. session.save_handler = files
  657. ; Argument passed to save_handler. In the case of files, this is the path
  658. ; where data files are stored. Note: Windows users have to change this
  659. ; variable in order to use PHP's session functions.
  660. ; As of PHP 4.0.1, you can define the path as:
  661. ;   session.save_path = "N;/path"
  662. ; where N is an integer. Instead of storing all the session files in
  663. ; /path, what this will do is use subdirectories N-levels deep, and
  664. ; store the session data in those directories. This is useful if you
  665. ; or your OS have problems with lots of files in one directory, and is
  666. ; a more efficient layout for servers that handle lots of sessions.
  667. ; NOTE 1: PHP will not create this directory structure automatically.
  668. ;     You can use the script in the ext/session dir for that purpose.
  669. ; NOTE 2: See the section on garbage collection below if you choose to
  670. ;     use subdirectories for session storage
  671. session.save_path = /tmp
  672. ; Whether to use cookies.
  673. session.use_cookies = 1
  674. ; This option enables administrators to make their users invulnerable to
  675. ; attacks which involve passing session ids in URLs; defaults to 0.
  676. ; session.use_only_cookies = 1
  677. ; Name of the session (used as cookie name).
  678. session.name = PHPSESSID
  679. ; Initialize session on request startup.
  680. session.auto_start = 0
  681. ; Lifetime in seconds of cookie or, if 0, until browser is restarted.
  682. session.cookie_lifetime = 0
  683. ; The path for which the cookie is valid.
  684. session.cookie_path = /
  685. ; The domain for which the cookie is valid.
  686. session.cookie_domain =
  687. ; Handler used to serialize data. php is the standard serializer of PHP.
  688. session.serialize_handler = php
  689. ; Define the probability that the 'garbage collection' process is started
  690. ; on every session initialization.
  691. ; The probability is calculated by using gc_probability/gc_divisor,
  692. ; e.g. 1/100 means there is a 1% chance that the GC process starts
  693. ; on each request.
  694. session.gc_probability = 1
  695. session.gc_divisor   = 100
  696. ; After this number of seconds, stored data will be seen as 'garbage' and
  697. ; cleaned up by the garbage collection process.
  698. session.gc_maxlifetime = 1440
  699. ; NOTE: If you are using the subdirectory option for storing session files
  700. ;    (see session.save_path above), then garbage collection does *not*
  701. ;    happen automatically. You will need to do your own garbage
  702. ;    collection through a shell script, cron entry, or some other method.
  703. ;    For example, the following script would is the equivalent of
  704. ;    setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
  705. ;     cd /path/to/sessions; find -cmin +24 | xargs rm
  706. ; PHP 4.2 and less have an undocumented feature/bug that allows you to
  707. ; to initialize a session variable in the global scope, albeit register_globals
  708. ; is disabled. PHP 4.3 and later will warn you, if this feature is used.
  709. ; You can disable the feature and the warning separately. At this time,
  710. ; the warning is only displayed, if bug_compat_42 is enabled.
  711. session.bug_compat_42 = 1
  712. session.bug_compat_warn = 1
  713. ; Check HTTP Referer to invalidate externally stored URLs containing ids.
  714. ; HTTP_REFERER has to contain this substring for the session to be
  715. ; considered as valid.
  716. session.referer_check =
  717. ; How many bytes to read from the file.
  718. session.entropy_length = 0
  719. ; Specified here to create the session id.
  720. session.entropy_file =
  721. ;session.entropy_length = 16
  722. ;session.entropy_file = /dev/urandom
  723. ; Set to {nocache,private,public,} to determine HTTP caching aspects
  724. ; or leave this empty to avoid sending anti-caching headers.
  725. session.cache_limiter = nocache
  726. ; Document expires after n minutes.
  727. session.cache_expire = 180
  728. ; trans sid support is disabled by default.
  729. ; Use of trans sid may risk your users security.
  730. ; Use this option with caution.
  731. ; - User may send URL contains active session ID
  732. ;  to other person via. email/irc/etc.
  733. ; - URL that contains active session ID may be stored
  734. ;  in publically accessible computer.
  735. ; - User may access your site with the same session ID
  736. ;  always using URL stored in browser's history or bookmarks.
  737. session.use_trans_sid = 0
  738. ; The URL rewriter will look for URLs in a defined set of HTML tags.
  739. ; form/fieldset are special; if you include them here, the rewriter will
  740. ; add a hidden <input> field with the info which is otherwise appended
  741. ; to URLs. If you want XHTML conformity, remove the form entry.
  742. ; Note that all valid entries require a "=", even if no value follows.
  743. url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
  744. [MSSQL]
  745. ; Allow or prevent persistent links.
  746. mssql.allow_persistent = On
  747. ; Maximum number of persistent links. -1 means no limit.
  748. mssql.max_persistent = -1
  749. ; Maximum number of links (persistent+non persistent). -1 means no limit.
  750. mssql.max_links = -1
  751. ; Minimum error severity to display.
  752. mssql.min_error_severity = 10
  753. ; Minimum message severity to display.
  754. mssql.min_message_severity = 10
  755. ; Compatability mode with old versions of PHP 3.0.
  756. mssql.compatability_mode = Off
  757. ; Connect timeout
  758. ;mssql.connect_timeout = 5
  759. ; Query timeout
  760. ;mssql.timeout = 60
  761. ; Valid range 0 - 2147483647. Default = 4096.
  762. ;mssql.textlimit = 4096
  763. ; Valid range 0 - 2147483647. Default = 4096.
  764. ;mssql.textsize = 4096
  765. ; Limits the number of records in each batch. 0 = all records in one batch.
  766. ;mssql.batchsize = 0
  767. ; Specify how datetime and datetim4 columns are returned
  768. ; On => Returns data converted to SQL server settings
  769. ; Off => Returns values as YYYY-MM-DD hh:mm:ss
  770. ;mssql.datetimeconvert = On
  771. ; Use NT authentication when connecting to the server
  772. mssql.secure_connection = Off
  773. ; Specify max number of processes. Default = 25
  774. ;mssql.max_procs = 25
  775. [Assertion]
  776. ; Assert(expr); active by default.
  777. ;assert.active = On
  778. ; Issue a PHP warning for each failed assertion.
  779. ;assert.warning = On
  780. ; Don't bail out by default.
  781. ;assert.bail = Off
  782. ; User-function to be called if an assertion fails.
  783. ;assert.callback = 0
  784. ; Eval the expression with current error_reporting(). Set to true if you want
  785. ; error_reporting(E_WARNING | E_NOTICE) around the eval().
  786. ;assert.quiet_eval = 0
  787. [Ingres II]
  788. ; Allow or prevent persistent links.
  789. ingres.allow_persistent = On
  790. ; Maximum number of persistent links. -1 means no limit.
  791. ingres.max_persistent = -1
  792. ; Maximum number of links, including persistents. -1 means no limit.
  793. ingres.max_links = -1
  794. ; Default database (format: [node_id::]dbname[/srv_class]).
  795. ingres.default_database =
  796. ; Default user.
  797. ingres.default_user =
  798. ; Default password.
  799. ingres.default_password =
  800. [Verisign Payflow Pro]
  801. ; Default Payflow Pro server.
  802. pfpro.defaulthost = "test-payflow.verisign.com"
  803. ; Default port to connect to.
  804. pfpro.defaultport = 443
  805. ; Default timeout in seconds.
  806. pfpro.defaulttimeout = 30
  807. ; Default proxy IP address (if required).
  808. ;pfpro.proxyaddress =
  809. ; Default proxy port.
  810. ;pfpro.proxyport =
  811. ; Default proxy logon.
  812. ;pfpro.proxylogon =
  813. ; Default proxy password.
  814. ;pfpro.proxypassword =
  815. [com]
  816. ; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
  817. ;com.typelib_file =
  818. ; allow Distributed-COM calls
  819. ;com.allow_dcom = true
  820. ; autoregister constants of a components typlib on com_load()
  821. ;com.autoregister_typelib = true
  822. ; register constants casesensitive
  823. ;com.autoregister_casesensitive = false
  824. ; show warnings on duplicate constat registrations
  825. ;com.autoregister_verbose = true
  826. [Printer]
  827. ;printer.default_printer = ""
  828. [mbstring]
  829. ; language for internal character representation.
  830. ;mbstring.language = Japanese
  831. ; internal/script encoding.
  832. ; Some encoding cannot work as internal encoding.
  833. ; (e.g. SJIS, BIG5, ISO-2022-*)
  834. ;mbstring.internal_encoding = EUC-JP
  835. ; http input encoding.
  836. ;mbstring.http_input = auto
  837. ; http output encoding. mb_output_handler must be
  838. ; registered as output buffer to function
  839. ;mbstring.http_output = SJIS
  840. ; enable automatic encoding translation accoding to
  841. ; mbstring.internal_encoding setting. Input chars are
  842. ; converted to internal encoding by setting this to On.
  843. ; Note: Do _not_ use automatic encoding translation for
  844. ;    portable libs/applications.
  845. ;mbstring.encoding_translation = Off
  846. ; automatic encoding detection order.
  847. ; auto means
  848. ;mbstring.detect_order = auto
  849. ; substitute_character used when character cannot be converted
  850. ; one from another
  851. ;mbstring.substitute_character = none;
  852. ; overload(replace) single byte functions by mbstring functions.
  853. ; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
  854. ; etc. Possible values are 0,1,2,4 or combination of them.
  855. ; For example, 7 for overload everything.
  856. ; 0: No overload
  857. ; 1: Overload mail() function
  858. ; 2: Overload str*() functions
  859. ; 4: Overload ereg*() functions
  860. ;mbstring.func_overload = 0
  861. [FrontBase]
  862. ;fbsql.allow_persistent = On
  863. ;fbsql.autocommit = On
  864. ;fbsql.default_database =
  865. ;fbsql.default_database_password =
  866. ;fbsql.default_host =
  867. ;fbsql.default_password =
  868. ;fbsql.default_user = "_SYSTEM"
  869. ;fbsql.generate_warnings = Off
  870. ;fbsql.max_connections = 128
  871. ;fbsql.max_links = 128
  872. ;fbsql.max_persistent = -1
  873. ;fbsql.max_results = 128
  874. ;fbsql.batchSize = 1000
  875. [Crack]
  876. ; Modify the setting below to match the directory location of the cracklib
  877. ; dictionary files. Include the base filename, but not the file extension.
  878. ; crack.default_dictionary = "c:\php\lib\cracklib_dict"
  879. [exif]
  880. ; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.
  881. ; With mbstring support this will automatically be converted into the encoding
  882. ; given by corresponding encode setting. When empty mbstring.internal_encoding
  883. ; is used. For the decode settings you can distinguish between motorola and
  884. ; intel byte order. A decode setting cannot be empty.
  885. ;exif.encode_unicode = ISO-8859-15
  886. ;exif.decode_unicode_motorola = UCS-2BE
  887. ;exif.decode_unicode_intel  = UCS-2LE
  888. ;exif.encode_jis =
  889. ;exif.decode_jis_motorola = JIS
  890. ;exif.decode_jis_intel  = JIS
  891. ; Local Variables:
  892. ; tab-width: 4
  893. ; End:
  894. [Zend]
  895. extension=magickwand.so
  896. extension=imagick.so
  897. ;extension=mailparse.so
  898. extension=pdo.so
  899. extension=pdo_sqlite.so
  900. extension=sqlite.so
  901. extension=pdo_mysql.so
  902. ;extension=uploadprogress.so
  903. ;extension=gnupg.so
  904. ;extension=mailparse.so
  905. ;extension=fileinfo.so
  906. ;extension=mongo.so
  907. ;extension=http.so
  908. extension=phar.so
  909. extension="ixed.5.2.lin"
  910. zend_extension="/usr/local/Zend/lib/Optimizer-3.3.9/php-5.2.x/ZendOptimizer.so"
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9090
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

Where you place the php.ini file will affect everything in that directory and below. So if you do only want it to only affect the files and folders in the crm directory, then you would place it there.
  • jharvey1029
  • Novice
  • Novice
  • jharvey1029
  • Posts: 31
  • Loc: New Castle, PA

Post 3+ Months Ago

Thanks, I knew it but wanted to 100%.

basically you can see that the script is checking my PHP file only I dont know how to change the error_reporting value within the file.

this is what I have:
Code: [ Select ]
981.    ; Eval the expression with current error_reporting(). Set to true if you want
982.    ; error_reporting() around the eval().
983.    ;assert.quiet_eval = 0
  1. 981.    ; Eval the expression with current error_reporting(). Set to true if you want
  2. 982.    ; error_reporting() around the eval().
  3. 983.    ;assert.quiet_eval = 0


I guess what I am asking is what values do I enter and exactly where if I want to meet the requirements for the script as its stating the value currently set: E_WARNING & E_NOTICE is NOT RECOMMENDED.

I researched this and found that the values appears to be digits, if thats the case how do I work out what digits change what in the value in order to get the recommended? Also can this be maybe set in say the .htaccess file normally?
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9090
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

What setting is it wanting you to actually set it to? You mentioned that it is currently:

E_WARNING & E_NOTICE

but not sure what you want it to set to. If you look in your php.ini file you will see this part which shows the different settings and how yours currently is the above:

Code: [ Select ]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; error_reporting is a bit-field. Or each number up to get desired error
; reporting level
; E_ALL    - All errors and warnings
; E_ERROR   - fatal run-time errors
; E_WARNING   - run-time warnings (non-fatal errors)
; E_PARSE   - compile-time parse errors
; E_NOTICE   - run-time notices (these are warnings which often result
;      from a bug in your code, but it's possible that it was
;      intentional (e.g., using an uninitialized variable and
;      relying on the fact it's automatically initialized to an
;      empty string)
; E_CORE_ERROR  - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's
;      initial startup
; E_COMPILE_ERROR - fatal compile-time errors
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
; E_USER_ERROR  - user-generated error message
; E_USER_WARNING - user-generated warning message
; E_USER_NOTICE  - user-generated notice message
;
; Examples:
;
; - Show all errors, except for notices
;
;error_reporting = E_ALL & ~E_NOTICE
;
; - Show only errors
;
;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
;
; - Show all errors except for notices
;
error_reporting = E_ALL & ~E_NOTICE
  1. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2. ; Error handling and logging ;
  3. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  4. ; error_reporting is a bit-field. Or each number up to get desired error
  5. ; reporting level
  6. ; E_ALL    - All errors and warnings
  7. ; E_ERROR   - fatal run-time errors
  8. ; E_WARNING   - run-time warnings (non-fatal errors)
  9. ; E_PARSE   - compile-time parse errors
  10. ; E_NOTICE   - run-time notices (these are warnings which often result
  11. ;      from a bug in your code, but it's possible that it was
  12. ;      intentional (e.g., using an uninitialized variable and
  13. ;      relying on the fact it's automatically initialized to an
  14. ;      empty string)
  15. ; E_CORE_ERROR  - fatal errors that occur during PHP's initial startup
  16. ; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's
  17. ;      initial startup
  18. ; E_COMPILE_ERROR - fatal compile-time errors
  19. ; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
  20. ; E_USER_ERROR  - user-generated error message
  21. ; E_USER_WARNING - user-generated warning message
  22. ; E_USER_NOTICE  - user-generated notice message
  23. ;
  24. ; Examples:
  25. ;
  26. ; - Show all errors, except for notices
  27. ;
  28. ;error_reporting = E_ALL & ~E_NOTICE
  29. ;
  30. ; - Show only errors
  31. ;
  32. ;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
  33. ;
  34. ; - Show all errors except for notices
  35. ;
  36. error_reporting = E_ALL & ~E_NOTICE


Notice that last line I highlighted, that is the line you need to change. Anything that starts with a semi-colon by the way is a comment and is actually not parsed. If it does not start with a semi-colon then you know its a value that PHP takes into consideration. Right now the way you have it set is that it shows all errors except for notices. So depending on how you want the settings, you would just tweak that line.
  • jharvey1029
  • Novice
  • Novice
  • jharvey1029
  • Posts: 31
  • Loc: New Castle, PA

Post 3+ Months Ago

Brian cheers mate it now works great.

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 6 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.