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 :: laravel controller update 
Php :: In PackageManifest.php line 122: Undefined index: name 
Php :: magento 2.3 check if customer is logged in 
Php :: php camelcase to snake case 
Php :: how to remove array index from json in php 
Php :: laravel migration table bigint 
Php :: carbon get day name 
Php :: shortcode php wordpress 
Php :: array key value php 
Php :: php loops 
Php :: double where condition in laravel 
Php :: laravel auth check login 
Php :: pretty json php 
Php :: moodle get course image 
Php :: laravel vue 
Php :: laravel where equal 
Php :: php throw exception get message 
Php :: load-styles.php 403 
Php :: laravel validation double 
Php :: how to get attachments to emails php 
Php :: explode example in php 
Php :: laravel collective form include image 
Php :: laravel url download file 
Php :: default language laravel 
Php :: check if checkbox is not checked laravel 8 
Php :: how to pass token with post request laravel 
Php :: php mod 
Php :: how to trim string in laravel 
Php :: laravel signed Route custom domain 
Php :: insert batch in laravel 
ADD CONTENT
Topic
Content
Source link
Name
6+6 =