hey everyone!! I've been trying to get this command to work but no luck at all. Can anyone point out where it's going wrong? Thanks
You should have permissions for the file itself, whether it be 644, 755, or 777 or what ever other combination. If the permissions are incorrect, it may not be able to call the php interpreter to execute the file. I would suggest you talk with your host, as they would know the server setup, or, let me know if you have root access to the server, and we can go from there.
oooh that sort of permission. It's on 644 at the moment/ And what do you mean by root access? I don't think I have that. I am on a shared hosting account from hostgator using cPanel!
If you are on a shared host, try changing the files permissions to 755. If it still does not work, you may have to include the path to the php interpreter in the cron command, and you should contact HostGator for the correct info.
OK I will set the permissions to 775 and see if that makes any changes. I will also try it with an additional "-q" so it would be: Hopefully that would all work!
I think you'd better use absolute path to php, ie. /usr/bin/php /usr/bin/php /home/asgsoft/public_html/path/to/script/script.php Code (markup): Or try an online cron jobs service to call its URL (e.g http://yoursite.com/path/to/script.php) and you will be fine