I need to have a query string in my crontab but it isn't working. Can someone please tell me how I can do this?
Thanks
I need to have a query string in my crontab but it isn't working. Can someone please tell me how I can do this?
Thanks
PHP on the command line doesn't take arguments like that.
http://php.net/manual/en/features.commandline.php
$ php file.php arg1 arg2
file.php
<?php
print_r($argv)
$ php example.php param1=value1 param2=value2
example.php:
<?php
echo "param1:" . $param1 . " ";
echo "param2:" . $param2;
wget example:
$ wget http://your%5Fhost/example.php?param1=value1&param2=value2 2 > null