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
Php :: a2dismod 
Php :: __construct 
Php :: php convert date and time to iso 8601 
Php :: get all routes laravel 
Php :: how to make validate error when password doesnt match with password confirm laravel 
Php :: laravel migration refresh 
Php :: php artisan migrate create table 
Php :: get all values inside session laravel 
Php :: Adding or Subtracting Time 
Php :: clear bootstrap cache laravel 
Php :: php routing htaccess 
Php :: brew switch php version 
Php :: str slug laravel 
Php :: php str_replace 
Php :: get term thumbnail 
Php :: php referral 
Php :: how to install bootstrap in laravel 8 
Php :: wpml get translated post id 
Php :: ucwords in php 
Php :: how to get previous page name in php 
Php :: php reset array keys 
Php :: php multidimensional array search by value 
Php :: npm watch laravel 
Php :: laravel long description text string 
Php :: php get everything after last slash 
Php :: php get current url without filename 
Php :: how to decode jwt token in php 
Php :: check if table exists sql php 
Php :: get option field acf 
Php :: php number precision 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =