Question: Say we usually it access via

```
http://localhost/index.php?a=1&b=2&c=3

```

How do we execute the same on a Linux command prompt?

```
php -e index.php

```

But what about passing the $\_GET variables? Maybe something like `php -e index.php --a 1 --b 2 --c 3`? I doubt that'll work.

Answer: 
If you need to pass `$_GET`, `$_REQUEST`, `$_POST`, or anything else you can also use PHP interactive mode:

```
php -a

```

Then type:

```
<?php
    $_GET['a'] = 1;
    $_POST['b'] = 2;
    include("/somefolder/some_file_path.php");

```

This will manually set any variables you want and then run your PHP file with those variables set.
I just pass them like this:

```
php5 script.php param1=blabla param2=yadayada

```

It works just fine. The $\_GET array is:

```
array(3) {
  ["script_php"]=>
  string(0) ""
  ["param1"]=>
  string(6) "blabla"
  ["param2"]=>
  string(8) "yadayada"
}

```