LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-18-2007, 03:39 AM   #1
Roosta21
Member
 
Registered: Aug 2004
Distribution: Fedora core 4
Posts: 55

Rep: Reputation: 15
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
 
Old 04-18-2007, 06:29 AM   #2
Roosta21
Member
 
Registered: Aug 2004
Distribution: Fedora core 4
Posts: 55

Original Poster
Rep: Reputation: 15
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
shell script using /etc/cron.hourly to execute cron.php file? rioguia Programming 3 06-11-2008 08:09 AM
Urgent!!!!! Help with wget and php exec command ?? rajnair0278 Linux - Software 6 03-21-2006 03:19 AM
Configure Php for wget.....Anybody????? rajnair0278 Linux - Software 2 03-21-2006 02:30 AM
Setting a cron nitaish Linux - General 6 11-03-2004 07:43 AM
Setting cron by php code? VertiHost Programming 1 10-15-2003 06:41 PM


All times are GMT -5. The time now is 09:20 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration