php - Cronjob issue. Doesn't recognize variable -
works:
php -q /home/site/public_html/cron/file.php doesn't work:
php -q /home/site/public_html/cron/file.php?variable=1 any suggestions? need send variable $_get (or not)
do this
curl http://hostname/cron/file.php?variable=1 and in file.php managing code $_get[variable]
this woould behave simple browser call in shell/terminal
hope helps
Comments
Post a Comment