Put execution arg into _GET PHP CLI
PHP CLI
<?php
if ($argv) {
foreach ($argv as $k=>$v) {
if ($k==0) continue;
$it = explode("=", $argv[$i]);
if (isset($it[1])) $_GET[$it[0]] = $it[1];
}
}
?>
Put execution arg into _GET PHP CLI
PHP CLI
<?php
if ($argv) {
foreach ($argv as $k=>$v) {
if ($k==0) continue;
$it = explode("=", $argv[$i]);
if (isset($it[1])) $_GET[$it[0]] = $it[1];
}
}
?>