Runtime Configuration

Posted by admin | Posted in PHP Tutorial | Posted on 10-08-2010-05-2008

0

The behavior of the MySQL functions is affected by settings in the php.ini file.

MySQL configuration options:

Name Default Description Changeable
mysql.allow_persistent “1″ Whether or not to allow persistent connections PHP_INI_SYSTEM
mysql.max_persistent “-1″ The maximum number of persistent connections per process PHP_INI_SYSTEM
mysql.max_links “-1″ The maximum number of connections per process (persistent connections included) PHP_INI_SYSTEM
mysql.trace_mode “0″ Trace mode. When set to “1″, warnings and SQL-errors will be displayed. Available since PHP 4.3 PHP_INI_ALL
mysql.default_port NULL The default TCP port number to use PHP_INI_ALL
mysql.default_socket NULL The default socket name to use. Available since PHP 4.0.1 PHP_INI_ALL
mysql.default_host NULL The default server host to use (doesn’t apply in SQL safe mode) PHP_INI_ALL
mysql.default_user NULL The default user name to use (doesn’t apply in SQL safe mode) PHP_INI_ALL
mysql.default_password NULL The default password to use (doesn’t apply in SQL safe mode) PHP_INI_ALL
mysql.connect_timeout “60″ Connection timeout in seconds PHP_INI_ALL

Runtime Configuration

Posted by admin | Posted in PHP Tutorial | Posted on 10-08-2010-05-2008

0

The behavior of the misc functions is affected by settings in the php.ini file.

Misc. configuration options:

Name Default Description Changeable
ignore_user_abort “0″ FALSE indicates that scripts will be terminated as soon as they try to output something after a client has aborted their connection PHP_INI_ALL
highlight.string “#DD0000″ Color for highlighting a string in PHP syntax PHP_INI_ALL
highlight.comment “#FF8000″ Color for highlighting PHP comments PHP_INI_ALL
highlight.keyword “#007700″ Color for syntax highlighting PHP keywords (e.g. parenthesis and semicolon) PHP_INI_ALL
highlight.bg “#FFFFFF” Color for background PHP_INI_ALL
highlight.default “#0000BB” Default color for PHP syntax PHP_INI_ALL
highlight.html “#000000″ Color for HTML code PHP_INI_ALL
browscap NULL Name and location of browser-capabilities file (e.g. browscap.ini) PHP_INI_SYSTEM

Runtime Configuration

Posted by admin | Posted in PHP Tutorial | Posted on 10-08-2010-05-2008

0

The behavior of the mail functions is affected by settings in the php.ini file.

Mail configuration options:

Name Default Description Changeable
SMTP “localhost” Windows only: The DNS name or IP address of the SMTP server PHP_INI_ALL
smtp_port “25″ Windows only: The SMTP port number. Available since PHP 4.3 PHP_INI_ALL
sendmail_from NULL Windows only: Specifies the “from” address to be used in email sent from PHP PHP_INI_ALL
sendmail_path NULL Unix systems only: Specifies where the sendmail program can be found (usually /usr/sbin/sendmail or /usr/lib/sendmail) PHP_INI_SYSTEM

Runtime Configuration

Posted by admin | Posted in PHP Tutorial | Posted on 10-08-2010-05-2008

0

The behavior of the filesystem functions is affected by settings in php.ini.

Filesystem configuration options:

Name Default Description Changeable
allow_url_fopen “1″ Allows fopen()-type functions to work with URLs (available since PHP 4.0.4) PHP_INI_SYSTEM
user_agent NULL Defines the user agent for PHP to send (available since PHP 4.3) PHP_INI_ALL
default_socket_timeout “60″ Sets the default timeout, in seconds, for socket based streams (available since PHP 4.3) PHP_INI_ALL
from “” Defines the anonymous FTP password (your email address) PHP_INI_ALL
auto_detect_line_endings “0″ When set to “1″, PHP will examine the data read by fgets() and file() to see if it is using Unix, MS-Dos or Mac line-ending characters (available since PHP 4.3) PHP_INI_ALL

Runtime Configuration

Posted by admin | Posted in PHP Tutorial | Posted on 10-08-2010-05-2008

0

The behavior of the date/time functions is affected by settings in php.ini.

Date/Time configuration options:

Name Default Description Changeable
date.default_latitude “31.7667″ Specifies the default latitude (available since PHP 5). This option is used by date_sunrise() and date_sunset() PHP_INI_ALL
date.default_longitude “35.2333″ Specifies the default longitude (available since PHP 5). This option is used by date_sunrise() and date_sunset() PHP_INI_ALL
date.sunrise_zenith “90.83″ Specifies the default sunrise zenith (available since PHP 5). This option is used by date_sunrise() and date_sunset() PHP_INI_ALL
date.sunset_zenith “90.83″ Specifies the default sunset zenith (available since PHP 5). This option is used by date_sunrise() and date_sunset() PHP_INI_ALL
date.timezone “” Specifies the default timezone (available since PHP 5.1) PHP_INI_ALL