LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   setting up a php cron using wget (http://www.linuxquestions.org/questions/linux-software-2/setting-up-a-php-cron-using-wget-546975/)

Roosta21 04-18-2007 03:39 AM

setting up a php cron using wget
 
Hi I am attemping to set up a php cron, to automate the following task. when a website url (http://www.mydomain.com/index2.php?o...late&no_html=1) is inputted into a browser it refreshs a database.

I believe the best way to do it is to use the wget function

# wget http://www.mydomain.com/index2.php?o...late&no_html=1

Then place that line into the crontab (which I have not yet figured how to do)

When I run wget http://www.mydomain.com/index2.php?o...late&no_html=1 it returns

HTTP request sent, awaiting response... 403 Forbidden
09:38:18 ERROR 403: Forbidden.

am I doing something the wrong the the url is correct

Roosta21 04-18-2007 06:29 AM

I have chmod the index2.php file to 777. Still the sames issue.

I checked the error logs it has "client denied by server configuration"

I have tried lynx and I get the same error,

Can anyone shed some light?


All times are GMT -5. The time now is 05:02 PM.