I am unfortunately working with a script/program that has it's cron job PHP file, login and password protected! I was just informed from Lunarpages that I have to use a different command line to run cron jobs now, which includes PHP and then the file path.
However, my file asks for a login/password. When I enter the path in a URL, I get a pop up window that asks for the login and password. I enter it and it works fine. Whenever I try this using cron I get and error.
So, here is the way I'm entering my cron job:
This is the error I get in return:
WWW-Authenticate: Basic realm="Enter your username and password"
- - - -
How would I add a login and password to my cron job command line, so the script recognizes it and runs the script?
Any help would be appreciated! I tried removing the authentication from the file, but the stupid authentication runs through the ENTIRE script/program. So stupid!!!! Why password protect a cron job? It just doesn't make any sense.