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 add package without updating 
Php :: how to upload large video file in php 
Php :: get all users created in a month laravel 
Php :: php combine 2 arrays keep duplicates 
Php :: php header not working 
Php :: laravel api cors localhost issue 
Php :: get id from current url for php 
Php :: how to create static variable in model laravel 
Php :: laravel exclude field 
Php :: How do you set a variable to an integer? in php 
Php :: php variable as javascript function parameter in echo 
Php :: laravel scheduler on shared hosting 
Php :: laravel logout all users 
Php :: mp3 file upload code in php 
Php :: woocommerce get shipping classes 
Php :: laravel get all request parameters 
Php :: xampp php 5.6 download 64 bit 
Php :: php flip array 
Php :: laravel create many 
Php :: Get All dates of a month with laravel carbon 
Php :: laravel uuid not showing in query 
Php :: how to declare global variable in laravel controller 
Php :: laravel notification 
Php :: global variable in laravel controller 
Php :: woocommerce view order details frontend with shortcode 
Php :: how to run php in js 
Php :: laravel admin panel free package 
Php :: return back laravel controller 
Php :: laravel sanctum instalation 
Php :: php function to minify javascript and css 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =