I need to pass some $usertoken value to shell\_exec function inorder to execute another PHP file with this value from my server.

Here is my code :

```
<?php
$usertoken= array( $_GET['usertoken'] );
$findme   = 'valid_device';
$pos = strpos($usertoken, $findme);

if ($pos === false) {
    echo "The string '$findme' was not found in the string '$usertoken'";
} else {
    echo " Device is valid ### $usertoken Continue to push_script  ### ";
    echo shell_exec('cd /mypath; /usr/local/bin/php -q push_script.php -q "{$usertoken}"');
    }
?>

```

The push\_script.php is waiting with $\_GET to the $usertoken value

How can I pass this argument to the PHP ?

I understood from what I was reading that I should use maybe some parse\_str() with combination of $argv in order to parse the $usertoken to the PHP script but I can't figure it out how to do it.

I will appreciate any help