Run PHP with Crontab - Help!

Hey all,

I'm having some major problems trying to run a PHP script with crontab. The script is located at www.myserver.com/crontest.php. I have tried multiple crontabs and none have worked. Right now it looks like this:

wget http://www.myserver.com/crontest.php

When that command is entered and I ask crontab to send out an email to be with the results, I recieve this error in my email:

/bin/sh: line 1: /usr/bin/wget: Permission denied

I have also tried other methods, to no avail. I am using hostingzoom hosting, so I'm not sure if I need to do something with paths, or if they need to set something up. Also, I have run chmod 755 on the file crontest.php so it should be executable.

What else to I need to do to get this script to run regularly? I have heard that I need to put some kind of line at the beginning of the crontest.php script, and also that I may need to modify the command. Any ideas? Thanks much!

 

 

 

 

Top