<?php
  // hello_world.php
  // RJM Programming
  // July, 2018

  $before = "";
  $csf = "echo '";
  if ($argv) {  // PHP command line
   foreach ($argv as $arg) { 
     if (strpos($arg, ".php") === false) {
      $csf .= ($before . $arg);
      $before = " ";
     }
   }
  } else {  // Web browsing or Curl
   foreach ($_GET as $name => $val) {
     if (strpos(htmlspecialchars($val), ".php") === false) {
      $csf .= ($before . htmlspecialchars($val));
      $before = " ";
     }
   }
  }
  passthru($csf . "'");
  exit;
?>
