0

using CLI:

php -i | grep 'php.ini'

return just my target: path to Configuration File

but how get the same from Apache? (http://)

enter image description here

the code

<?php
phpinfo(1);

return my target but this require filter output and use preg_match('/PATERN/', $output, $string)...

also the code

<?php
php_ini_loaded_file();

and

<?php
php_ini_scanned_files();

return files.ini loaded, but again: I need the value Path returned by

php -i | grep 'php.ini'

is possible from http?

(if instructions from line command is called CLI, what is the name for code from http??)

Stackoverflow
  • 449
  • 5
  • 13

0 Answers0