I have done a a bash script which run php script. It works fine without parameters but when I add parameters (id and url), there are some errors:
PHP Deprec
Call it as:
php /path/to/script/script.php -- 'id=19&url=http://bkjbezjnkelnkz.com'
Also, modify your PHP script to use parse_str():
parse_str($argv[1]);
If the index $_SERVER['REMOTE_ADDR'] isn't set.
More advanced handling may need getopt(), but parse_str() is a quick'n'dirty way to get it working.