My webhost only allows cron files run from the webroot a folder on the web
The cronjob is calling a file has in it:
/usr/bin/GET -C loginname:password http://www.example.com/secretfolder/updatedata.php
But its not working. I'm not sure if the script is wrong but the login/password is right, because I password protected the secretfolder and it has to pass that to get to the updatedata.php page. This is because I'm using .htaccess and .htpasswd to protect the secretfolder (i can login there manually with no problems).
Another question is there a way to make even the cronjob file itself password protected? Although then that would require 2 logins/passwords.
NOTE: the cronjob file is located at: http://www.example.com so its not in the secretfolder