Private Label and Cobranded VoIP Solutions
BrainCast internet & phone based message/memo recording & reminder organization system
Internet Phone Service and Broadband Phone Service by ViaTalk

Go Back   VoIP Forums, Internet Phone Service Forums, & Web Hosting Forums > CoderForums - Programming Discussion > General Programming Issues > Programming Languages & Technologies > PHP

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-26-2002, 05:59 PM
Ethan86 Ethan86 is offline
Registered User
 
Join Date: Feb 2002
Location: Palm Bay, Florida
Posts: 2
Send a message via AIM to Ethan86
How to make/use "crontabs"

Hello,

I'm relatively new to all of this (I just got into PHP 3 weeks ago, MySQL a week), and have come across many problems over the past few weeks, but have usually found answers fairly quickly. However I have not been able to find much support on use of Crontabs. (I realize this is more of a server issue than a PHP issue, but I thought I should still try here.)

I've read on the format that crontabs are used in, and I'm fairly sure that this is what I want:

0,15,30,45 * * * * /usr/local/lib/php /home2/frimsah/public_html/frimsah/login/crontab_offline.php

Every 15 minutes, I'd like it to execute the file "crontab_offline.php". I'm still not entirely clear on what I do with this file (the one with the crontab line) though, and if there's anything else I need to do for it to work.

Help is apreciated.

Thanks,

Ethan86
Frimsah
http://frimsah.milkbag.net/login/
__________________
Frimsah
Reply With Quote
  #2  
Old 03-13-2002, 04:31 PM
middleground's Avatar
middleground middleground is offline
Registered User
 
Join Date: Oct 2001
Location: Pa
Posts: 127
Can't help if you need to do anything with file, as in my cases all I had to do was call the file, but can help on syntax. This worked on my sites for drupal testing.
--------------------
I just needed a place to stick this so as to not forget:
Syntax for calling a php file in a cron tab-
php /home2/lansber/public_html/blog/cron.php > /dev/null
--------------------
Need php in front, and stuff on end to tell it where to output to. nice if HR would add this to FAQ- I spent many hours digging google search results for this one.
__________________
Every Day Above Ground Is A Good One!!!
Reply With Quote
Reply

Thread Tools
Display Modes 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

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