I'm trying to get a PHP script to work under crontab, with no joy. The script works fine when invoked from bash, but crontab won't have any of it. The crontab entry is actually executing, because I can track a bash script that calls the PHP, but there's nothing from the PHP side.
I understand that this is because crontab executes its entries with no environment; so there's presumably something within the bash startup scripts that PHP is depending upon that isn't there from crontab.
Any ideas?
Thanks.