Table of Contents

PHP - php.ini and php configuration

About

Php configuration.

Management

Dynamic

Set

default_socket_timeout is a ini timeout property. To change it dynamically, you use ini_set

ini_set("default_socket_timeout", 1);

Example with the php utility and the r option.

time php -n -r 'ini_set("default_socket_timeout", 1); fopen("https://127.0.0.1/sleepforever.php", "r");'

Get

Gets the value of a configuration option

ini_get()

Static: Php.ini

Location

php --ini
Configuration File (php.ini) Path: C:\Windows
Loaded Configuration File:         D:\xampp\php\php.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed:      (none)

phpinfo();