<?php
/* $_GET is set even for command line
execution, this may depend on your php.ini settings. $argv suffers from the same
ambiguity, so isset($argv) may not work either, though it is far less likely to
be set when accessing over the web. If you find this does not work, try testing
for an argument count in $argc.
*/
if (isset($argv)) {
$argument1 = $argv[1];
$argument2 = $argv[2];
echo "\r\n";
echo md5($argument1)."\r\n";
echo md5($argument2)."\r\n";
}
else {
$argument1 = $_GET["argument1"];
$argument2 = $_GET["argument2"];
echo "\r\n";
echo md5($argument1)."<br />";
echo md5($argument2)."<br />";
echo "Current date and time: " . md5(date("Y-m-d H:i:s"))."<br />";

$dt = new DateTime();
$dt->setTimezone(new DateTimeZone("America/Phoenix"));
$dt->setTimestamp(time());
echo "UTC: " . $dt->format("Y-m-d H:i:su");
}
/*Source: http://stackoverflow.com/questions/9612166/passing-command-line-arguments-to-a-php-script*/
/*Example site: http://www.miraclesalad.com/webtools/md5.php */
?>

d41d8cd98f00b204e9800998ecf8427e
d41d8cd98f00b204e9800998ecf8427e
Current date and time: 3c8bd0d048a560f65369d1e74e6e75a7
UTC: 2025-02-23 18:44:29000000
2025-02-23 11:44:29000000
20-digit date: 20250223114429000000