Hi, I've had complaints on my website that various variables, which rely on CRON to update by running x.php every hour, isn't working. It seems that CRON runs and sends me an email every hour to confirm, but it doesn't seem to be executing the script every time. Instead, it does it randomly. Here's my current CRON Job setup in Cpanel: I have no idea why it doesn't work right. Is this 'wget' command not as useful as others? If anyone can help I'd greatly appreciate it. Thanks, Lee.
Hmmm I don't think it worked. However I saw this on a website: What does the '--delete-after' do? Also, I get an error via email saying: "Couldn't resolve www.civ-online.com" when I use curl :/
Strange, you need to contact your webhost and ask them what is the best option to call a remote site script. That's because your host might have disable wget, curl. Last function you can try to use is 'lynx' Good luck!
Perhaps the wget is timing out. I solved a cron problem by simply using the full path to php to run a script on my server, as in: /usr/local/bin/php /home/MYWEBPATH/x.php I also got it to work with lynx instead of wget: lynx -dump http://MYDOMAIN/x.php
Thanks a lot friends. I fixed the problem. It appears the script was not being executed, rather it was being told to output. Here is how I solved it: