|
Question About Cron
Hello,
I am attempting to setup a cronjob that will generate an RSS feed from my database every 6 hours. I already made all the PHP code to do this, but I am not familiar with cronjobs and how to execute them.
Google search revealed this string to enter in the command line:
php /home/user/public_html/path/to/file.php
My question is, can I append variables to the end of the cron command?
For example:
php /home/user/public_html/path/to/file.php?action=generate&feed=1
The bolded portion is what I am unsure about. If someone with experience could please help me, I would greatly appreciate it!
|