linux - passing URL variables to exec() with php -
i have dedicated server use crunch lots of data. way have now, can open script process id example.php?ex_pid=123
, let go. downloads small portion of data, processes it, uploads database starts again.
ideally, call example.php?ex_pid=123
directly , not passing variable example.php exec('./example.php'.' '.escapeshellarg($variable));
keep acting globally.
i don't care output, if execute in background, brilliant. server ubuntu distribution btw.
is possible? if so, , examples more appreciated.
you like:
exec("./example.php '".addslashes(serialize($_get))."');
and in example.php this:
count($_get) == 0 && $_get = unserialize(stripslashes($_server['argv'][1]))
Comments
Post a Comment