http://stackoverflow.com/questions/4186392/php-passing-get-in-linux-command-prompt
From this answer on ServerFault:
Use the
php-cgi
binary instead of just php
, and pass the arguments on the command line, like this:php-cgi -f index.php left=1058 right=1067 class=A language=English
Which puts this in
$_GET
:Array
(
[left] => 1058
[right] => 1067
[class] => A
[language] => English
)
No comments:
Post a Comment