Answers for "php ini file location"

PHP
2

php get php.ini location from termina

php --ini
Posted by: Guest on April-29-2020
1

To find out where your php.ini is located

run: php --ini
Posted by: Guest on June-08-2020
0

php get file location

# C:\Users\Redacted\Desktop\main.php
include __DIR__ . DIRECTORY_SEPARATOR . 'include.php';
echoScriptPath();

# C:\Users\Redacted\Desktop\include.php
function echoScriptPath() {
    list($scriptPath) = get_included_files();
    echo 'The script being executed is ' . $scriptPath;
}
Posted by: Guest on June-19-2020
0

php.ini location

create a php file with this code

<?php phpinfo(); ?>

and php.ini file's location + others details will be available when 
you'll browse the file with a web browser.
Posted by: Guest on September-11-2021

Browse Popular Code Answers by Language