View Full Version : Cron Jobs
Maxtr0sity
August 12th, 2003, 10:43 AM
Hey, anyone use Cron jobs to do stuff? I'm not sure what exactly it can do and it can't do. Any suggestions? Also, where can I get scripts?
DigitalPimp
August 12th, 2003, 10:53 AM
WTF is a cron job?
Maxtr0sity
August 12th, 2003, 10:56 AM
Never heard of them? I have them since I own a domain, it's in the cPanel Control Panel. It's suppose to backup databasese automatically somehow, but I'm not too sure.
DigitalPimp
August 12th, 2003, 11:00 AM
oh..... That would be host specific. The only people that will know how to use that are people that have the same host as you.
λ
August 12th, 2003, 11:14 AM
A cron job is a script that runs every so often. For instance, you could have a script like this:
<?php
$fileCon = fopen("daysUp.txt", "A+");
fputs($fileCon,"1");
fclose($fileCon);
?>
then you could run this script every day at midnight, and you would have a counter in a textfile of how many days your site had been up.
Maxtr0sity
August 12th, 2003, 11:23 AM
Do I need to put anything in Cron to show that script?
λ
August 12th, 2003, 11:28 AM
I'm sorry, I have no experience actually using cron jobs. I just happen to know what they are :-\
Maxtr0sity
August 12th, 2003, 11:30 AM
Nuts, I tried looking for it online...no one knows too much about them and scripting them.
nobody
August 12th, 2003, 02:16 PM
Max if you don't really know what they are why do you want to use them?
Maxtr0sity
August 12th, 2003, 02:19 PM
Yes, because I liked automated stuff, and my database does need to be backed up.
λ
August 12th, 2003, 02:27 PM
If you need your database backing up, you can use PHPMyAdmin, if your host supports it. There is a built in way of exporting the database to a .cvs file, I believe =)
Maxtr0sity
August 12th, 2003, 02:30 PM
I mean like automatically which I think Cron can do.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.