SyntaxFix
Write A Post
Hire A Developer
Questions
php -r 'parse_str($argv[2],$_GET);include $argv[1];' index.php 'a=1&b=2'
You could make the first part as an alias:
alias php-get='php -r '\''parse_str($argv[2],$_GET);include $argv[1];'\'
then simply use:
php-get some_script.php 'a=1&b=2&c=3'