PHP - php.ini and php configuration

Card Puncher Data Processing

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

  • at the command line with php
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)

  • the web server: To get the location of the configuration file php.ini, search the section “Loaded Configuration File” from the ouptut of the following php file. Example: phpinfo.php
phpinfo();





Discover More
Phpinfo Mbstring Enabled
Dokuwiki - Dev environment Configuration and Installation

This is the installation and configuration of the dokuwiki development platform on Windows that we use. slow. Docker with the last WSL2 is really, really slow if you don't work in WSLkeep it simpleVisual...
Firefox Easy Xdebug Profile Cookie
How to profile with the PHP Xdebug Profiler

The profiler in Xdebug outputs profiling information in the form of a cachegrind compatible file. Install xdebug and set the profiler...
Php Home Path System User
Installation of Apache on Windows 10 with Apache Lounge

This article shows you how easy it is to install apache on Windows 10
Card Puncher Data Processing
PHP - Configuration (php.ini)

The whole configuration of PHP is done within the file The php home directory must be in the PATH. The following components need a configuration:
Card Puncher Data Processing
PHP - Extension / Module

An extension is a library that is not automatically present during the installation of php. An extension is also known as module. In the configuration, you need to: set the location of your extension...
Card Puncher Data Processing
Php - Include PATH (Search Path)

The include_path parameter specifies a list of directories where the: require, include, fopen(), file(), readfile() and file_get_contents() functions look for files. The format...
Card Puncher Data Processing
Php - Oracle (OCI Installation)

This page is showing how to install an Oracle drivers OCI Get an 32 bit instant client zip file the instant...
Php Error Level Enotice Not Set
Php - Error

This page is the standard error handling system of php known also as the error functions. This system: triggers error at a certain level that may be caught via a global callback function. ...



Share this page:
Follow us:
Task Runner