Search
 
SCRIPT & CODE EXAMPLE
 

PHP

how to find php.ini

php -i | grep "Loaded Configuration File"
Comment

where can I find php --ini

php --ini
Comment

Find php ini

Find your php.ini file – you can use php -i | grep php.ini
Comment

find which php.ini is used

for cmd : php --ini
  
for code : use php_ini_loaded_file() as :=

$inipath = php_ini_loaded_file();
if ($inipath) {
    echo 'Loaded php.ini: ' . $inipath;
} else {
    echo 'A php.ini file is not loaded';
}
Comment

find php ini

1. Create test.php file with the following content

2. <?php phpinfo(); ?>

3. Put it in the root of the site (or in a public folder)

4. Open the file on your browser "domaine.com/test.php"

4. Look for "Loaded Configuration File"
Comment

PREVIOUS NEXT
Code Example
:: a2dismod 
Php :: __construct 
::  
Php :: php if url contains 
Php :: php reading a file line by line 
Php :: how console log laravel 
Php :: laravel route group middleware prefix 
Php :: composer install ignore platform reqs 
Php ::  
:: laravel run php server by ipv4 
:: php call parent constructor 
::  
Php :: Call to undefined function str_limit() laaravel8 
Php :: pull information from another website 
Php ::  
::  
Php :: php isarray 
Php ::  
Php ::  
Php ::  
Php :: php set content type pdf 
Php :: wpml get current language filter 
:: add leading zeros in php 
:: how to check the laravel version mac 
:: validate year laravel 
Php :: group by codeigniter 3 
Php ::  
::  
Php ::  
::  
ADD CONTENT
Topic
Content
Source link
Name
3+1 =