Pass parameters via url inside a php cron job
| From: | Merlin Morgenstern | Date: | Thu, 25 Sep 2008 10:07:44 +0000 |
| Subject: | Pass parameters via url inside a php cron job | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-280909@lists.php.net to get a copy of this message | ||
Hi there,
I would like to run a php file via cron job and there is a parameter to be passed. Unfortunatelly this does not work:
# /usr/local/bin/php /home/www/create_notification_emails.php?tf=2
Could not open input file: /home/www/create_notification_emails.php?tf=2
The problem seems to be the ?tf=2
How do I pass parameters to this script? I need the same script but executed in different time frames which is passed by the parameter.
Any ideas?
Thank you for any hint,
Merlin