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

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -