Current location: Hot Scripts Forums » Programming Languages » PHP » Crontab running php script


Crontab running php script

Reply
  #1 (permalink)  
Old 01-04-06, 06:11 PM
Arctic Arctic is offline
Wannabe Coder
 
Join Date: Jul 2003
Location: BC, Canada
Posts: 120
Thanks: 0
Thanked 1 Time in 1 Post
Crontab running php script

Hi guys, just a simple question...I would like to know if you guys have any experience with cron jobs. I want to run a script every minute, my script updates my database. So, my question is, if my script is running every minute, will that put a strain on the server or my database at all?

Thanks.
__________________
http://www.streamsearch.ca - Live stream search engine. Find radio stations to listen to and TV channels to watch!

http://www.machonemedia.ca - Mach One Media web development and media services.
Reply With Quote
  #2 (permalink)  
Old 01-04-06, 06:24 PM
kvnband kvnband is offline
Wannabe Coder
 
Join Date: Jun 2003
Posts: 242
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Arctic
Hi guys, just a simple question...I would like to know if you guys have any experience with cron jobs. I want to run a script every minute, my script updates my database. So, my question is, if my script is running every minute, will that put a strain on the server or my database at all?

Thanks.
As long as the script isn't doing anything too intensive, you should be absolutely fine. I've got a cron script that runs every 2 minutes on a very very busy server and so far, loads are low.
Kevin
Reply With Quote
  #3 (permalink)  
Old 01-04-06, 06:42 PM
YourPHPPro's Avatar
YourPHPPro YourPHPPro is offline
Community VIP
 
Join Date: Aug 2003
Posts: 430
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Arctic
So, my question is, if my script is running every minute, will that put a strain on the server or my database at all?
Thanks.
Without seeing the query or knowing what it is doing, there isn't much to go on to answer the question... So, what's the queries that you need to run and is the database server shared or dedicated ?
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where is this PHP script? wildatheart Script Requests 0 04-25-05 10:19 AM
converting perl script to php help!! macruddace Perl 1 04-14-05 02:38 PM
Running a Script from an Email newhorizonz Perl 6 09-24-04 06:36 PM
trying to create my first simple (?) php script, need guidance HotShotPhoto PHP 1 09-06-04 08:12 PM
Please help me sort out a small part of my php script... robertisunemployed PHP 8 03-03-04 10:02 PM


All times are GMT -5. The time now is 06:26 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.