Internet Marketing Forum

Internet Marketing Forum


For Webmasters and Entrepreneurs
|
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 22, 2012, 07:06:51 PM

Login with username, password and session length

Three grand essentials to happiness in this life are something to do, something to love and something to hope for.


- Joseph Addison

|-   Internet Marketing Forum > Online Business Discussions > Website Design and Maintenance > Programming
+  

Run PHP Script Once Every Hour

0 Members and 1 Guest are viewing this topic.
Pages: [1] Reply to Thread
Author Topic: Run PHP Script Once Every Hour  (Read 752 times)
Offlinefuntoosh
Junior Member
funtoosh is on a distinguished road
Joined: Jul 2008
Posts: 93


Avatar of funtoosh

View funtoosh\s Profile
Gender: MaleScorpio United States
notepad Oct 19, 2011, 09:06:16 PM #1
I have a php script that I'd like to run once every hour. It updates a MySql database by wiping a table and rewriting it.

Is this possible to do this and if so how? I know I can't do it with the php script itself but is there some sort of server program that would do this automatically for me?

OfflineAceCoder
Junior Member
AceCoder is on a distinguished road
Joined: Oct 2007
Posts: 79



View AceCoder\s ProfileWWW
United States
notepad Oct 27, 2011, 07:30:12 PM #2
If you're hosting on a Linux based server, you can use "crontab" to automate tasks

Here's a good article about using crontab Linux Crontab: 15 Awesome Cron Job Examples

Latest Blog Post : PHP – Pass by Reference or Pass by Value

Summer Savings! $7.49 .com domains at GoDaddy.com!
Pages: [1] Reply to Thread


Code4Gold Internet Marketing Forum © 2006-2011 Resdaz Media LLC - All Rights Reserved
Forum Software Powered by SMF - © 2001-2008, Lewis Media. All Rights Reserved.