On Wed, August 3, 2016 14:19, Always Learning wrote:
On Wed, 2016-08-03 at 13:55 -0400, Jason Welsh wrote:
What I do is create a php.php file on the root of my fileserver with the following
<?php phpinfo() ?>
I use a text command: php -i
php -i > php-i.txt echo '<?php phpinfo() ?>' | php > php-echo.txt
diff php-i.txt php-echo.txt 709,710c709,710 < _SERVER["PHP_SELF"] => < _SERVER["SCRIPT_NAME"] => ---
_SERVER["PHP_SELF"] => - _SERVER["SCRIPT_NAME"] => -
714c714 < _SERVER["REQUEST_TIME"] => 1470317489 ---
_SERVER["REQUEST_TIME"] => 1470317531
716a717
[0] => -
719c720 < _SERVER["argc"] => 0 ---
_SERVER["argc"] => 1
I do not see much to choose between them in terms of output and 'php -i' is certainly handier when in a terminal session on the host.