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

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -