The behaviour of these functions is affected by settings in php.ini.
| Name | Default | Changeable | Changelog |
|---|---|---|---|
| mysql.allow_local_infile | "1" | INI_SYSTEM | |
| mysql.allow_persistent | "1" | INI_SYSTEM | |
| mysql.max_persistent | "-1" | INI_SYSTEM | |
| mysql.max_links | "-1" | INI_SYSTEM | |
| mysql.trace_mode | "0" | INI_ALL | |
| mysql.default_port | NULL | INI_ALL | |
| mysql.default_socket | NULL | INI_ALL | |
| mysql.default_host | NULL | INI_ALL | |
| mysql.default_user | NULL | INI_ALL | |
| mysql.default_password | NULL | INI_ALL | |
| mysql.connect_timeout | "60" | INI_ALL |
Here's a short explanation of the configuration directives.
mysql.allow_local_infile intmysql.allow_persistent boolmysql.max_persistent intmysql.max_links intmysql.trace_mode boolmysql.trace_mode is enabled, warnings for table/index scans, non free result sets, and SQL-Errors will be displayed. (Introduced in PHP 4.3.0)mysql.default_port stringmysql-tcp entry in /etc/services or the compile-time MYSQL_PORT constant, in that order. Win32 will only use the MYSQL_PORT constant.mysql.default_socket stringmysql.default_host stringmysql.default_user stringmysql.default_password stringmysql.connect_timeout int