<?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: 446081c1c1b92d41d0ea943686a1c6f7
UTC: 2025-08-23 09:05:13000000
2025-08-23 02:05:13000000
20-digit date: 20250823020513000000