FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Timing Events





polly-gone
Is there any way that I can have a PHP script that runs itself every day at a certain time only? I am trying to make a script that runs itself every day at midnight, queries a database for users that were added more than 48 hours ago and have not been verified yet, and deletes them from the database, but I am unsure of how to make it run every day at midnight.

Thanks,
-Nick Smile Smile Smile
rvec
cron
Directadmin and cpanel have an option to add new cron-lines.
on direct-admin:
advanced features->Cronjobs
polly-gone
I actually have no idea how to use cronjobs.... lol

In the panel do I just specify a time, and on the URL thing I put the location of the script, and whenever that time is reached it will run the script?

-Nick Exclamation Question Exclamation
rvec
yes Smile
polly-gone
Cool, thanks. Now I can actually do something with my website. lol

Edit: And rvec, I keep click yes on your sig, but nothing is happening. I wanna press it SOOOO much. LOL!

-Nick Smile Smile Smile
Related topics
science vs. religion
Java tutorials
Review: GNOME 2.14 (from Linux.com)
Buddhism
website timing out a little too often!
Javascript Variables FRIH$ to Debug
Server 2 Timing Out
What do you photograph the most?
If there was a god...
website timing out
Perfect timing to find Frihost
Rough Forcast of events due soon
Sorcery: TRUE Definition and Attempt to Rid of False Theory
Sexual Selection
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.