GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 16-May-2007, 11:10
Richardknox Richardknox is offline
Junior Member
 
Join Date: Nov 2006
Location: Michigan
Posts: 83
Richardknox is on a distinguished road

Website Maintanence


I need to run two scripts, once a week to update listings for recently added webcams, and top ten webcam. Does anyone know of a way to accomplish this with out human intervention. I just want something to activate these scripts, nothing more. They run untill they are done.

Thanks
Richard
http://www.thewebcamsite.net
  #2  
Old 16-May-2007, 13:45
TurboPT's Avatar
TurboPT TurboPT is offline
Regular Member
 
Join Date: Feb 2006
Location: Atlanta, GA
Posts: 956
TurboPT is a jewel in the roughTurboPT is a jewel in the roughTurboPT is a jewel in the rough

Re: Website Maintanence


What type of system are you using, Linux or something else?

If Linux, in the /etc directory, there may [or should?] be a subdirectory named: cron.weekly. You'll need to put the scripts so there they can be run. It might be necessary to create a small shell script that merely wraps the command: php file.php

Look at some examples that might already be in that directory, or one of the other cron.* directories.

I don't claim to be a cron expert, but maybe someone can provide more details that I can explain.

EDIT:
here a couple of links for more info:
http://www.htmlcenter.com/tutorials/...d=155&type=PHP
http://www.hackernotcracker.com/2007...d-crontab.html

There were more, here is what I googled: cron jobs "php scripts"
__________________
Use the force...read the source!!
WYCIWYG -- what you code is what you get!
  #3  
Old 17-May-2007, 18:32
ngsupb ngsupb is offline
New Member
 
Join Date: Feb 2007
Posts: 11
ngsupb is on a distinguished road

Re: Website Maintanence


and if you have Cpanel control panel, it can help

http://www.cpanel.net /docs/cpanel/Adding_a_cron_job_in_advanced_mode.htm
  #4  
Old 18-May-2007, 05:01
Richardknox Richardknox is offline
Junior Member
 
Join Date: Nov 2006
Location: Michigan
Posts: 83
Richardknox is on a distinguished road

Re: Website Maintanence


I am using Godaddy as my hosting service, and since I am using their basic service I do not have Cron available.

I guess I have to find another means to accomlish this.

Richard
  #5  
Old 18-May-2007, 09:52
TurboPT's Avatar
TurboPT TurboPT is offline
Regular Member
 
Join Date: Feb 2006
Location: Atlanta, GA
Posts: 956
TurboPT is a jewel in the roughTurboPT is a jewel in the roughTurboPT is a jewel in the rough

Re: Website Maintanence


What database version do you have available?

With MySQL 5.1, they now have "event scheduling", see here:
http://dev.mysql.com/doc/refman/5.1/...-overview.html
__________________
Use the force...read the source!!
WYCIWYG -- what you code is what you get!
  #6  
Old 18-May-2007, 13:57
Richardknox Richardknox is offline
Junior Member
 
Join Date: Nov 2006
Location: Michigan
Posts: 83
Richardknox is on a distinguished road

Re: Website Maintanence


They have Server version: 5.0.37.

I still am a day late, and a dollar short.

Richard
 
 

Recent GIDBlogToyota - 2008 August Promotion by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Techtas.com - Get a free website with loads of features now! lizard Free Web Hosting 0 16-Nov-2006 14:47
Check This New Searchengine Concept Out ! onauc Search Engine Optimization Forum 5 10-Feb-2006 10:23

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 18:28.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.