Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 10th, 2007, 9:45 PM   #1
Writlaus
Hobbyist Programmer
 
Writlaus's Avatar
 
Join Date: Nov 2005
Posts: 149
Rep Power: 3 Writlaus is on a distinguished road
regular calls to a script

I have gotten to a point in a project where I need the server to run a script (ideally in php, because that's what I know) at regular intervals (like every hour, or less if possible).

How do I go about that? Is it just as simple as, either the hosting company offers that service or it doesn't? Edit: And if it is just the hosting company, can anyone suggest a good hosting company that's either free or cheap, and offers that?

Last edited by Writlaus; Jul 10th, 2007 at 9:59 PM.
Writlaus is offline   Reply With Quote
Old Jul 10th, 2007, 10:16 PM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Sounds like a cron job. Whether you have the permissions for that is problematic.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Jul 10th, 2007, 11:17 PM   #3
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
if the platform is windows, you can look into a scheduled task, otherwise a cronjob would suffice.
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Jul 10th, 2007, 11:20 PM   #4
Writlaus
Hobbyist Programmer
 
Writlaus's Avatar
 
Join Date: Nov 2005
Posts: 149
Rep Power: 3 Writlaus is on a distinguished road
I read a bit about cron, and it seems to be what I'm looking for. But I can't find anything about it on the support pages of my current hosting company.
Writlaus is offline   Reply With Quote
Old Jul 10th, 2007, 11:31 PM   #5
ReggaetonKing
Sexy Programmer
 
ReggaetonKing's Avatar
 
Join Date: Nov 2005
Location: New Jersey
Posts: 891
Rep Power: 3 ReggaetonKing is on a distinguished road
Send a message via AIM to ReggaetonKing
I would contact them about it. See if you have that type of permissions on your host server.
__________________
I would love to change the world, but they won't give me the source code!
ReggaetonKing is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

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 On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows batch file script chronosoft Other Scripting Languages 6 Oct 10th, 2006 9:43 AM
A simple perl script satimis Perl 3 Aug 15th, 2005 9:31 AM
Filename expansion problems in script msalowit Bash / Shell Scripting 1 Apr 15th, 2005 10:21 AM
Bash Script Help pelon Bash / Shell Scripting 2 Feb 28th, 2005 3:58 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:16 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC