Go Back   HostGator Peer Support Forums > Public Forums > Suggestions

Notices

Reply
 
Thread Tools
  #1  
Old 07-13-2005, 08:39 PM
mawheatley mawheatley is offline
Hatchling Croc
 
Join Date: Jul 2005
Posts: 4
Default Automating Tasks

Sorry - I'm new to this, and I hope I have it in the right place. What I want to do should be really simple, but it has me completely baffled. I have written a PHP script that does exactly what I want it to do, when I view it through the browser, i.e. http://mydomain.com/script.php

All I want to do is make this happen automatically, once a day. I believe it is something to do with CRON, and I feel like I've read the whole internet looking for the answer, but nothing I do works. Can anyone help me, or at least point me in the right direction?

Thanks in advance
Reply With Quote
  #2  
Old 07-14-2005, 11:16 AM
gdwoods gdwoods is offline
Junior Croc
 
Join Date: Jul 2005
Posts: 147
Default Re: Automating Tasks

a few links to try:

http://www.linuxhelp.net/guides/cron/

http://www.unixgeeks.org/security/ne...ix/cron-1.html

http://www.uwsg.iu.edu/usail/automation/cron.html
Reply With Quote
  #3  
Old 07-14-2005, 03:53 PM
Stef's Avatar
Stef Stef is offline
Royal Croc
 
Join Date: May 2004
Posts: 715
Default Re: Automating Tasks

In your cPanel select Cron Jobs to schedule them.
To specify the time and day, the above links gdwoods posted will explain you how to do it.

For for a php script you can enter in the command box:
GET http://www.yourdomain.com/subfolder/script.php >/dev/null
or
php -q /home/<username>/public_html/subfolder/script.php >/dev/null

Stef.
Reply With Quote
Reply

Bookmarks

Thread Tools

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

Forum Jump

All times are GMT -5. The time now is 03:46 AM.