Search found 2 matches

by lucker
Sun Oct 31, 2010 9:42 am
Forum: PHP - Code
Topic: cron job randomly once a day
Replies: 2
Views: 246

Re: cron job randomly once a day

I trying this to opening registrations..
How can edit to close registrations after 1 hour
Thank you in advance
<?
set_time_limit(0);
sleep(rand(0, 86400));
/*
my spesify code here
*/

?>
by lucker
Sat Oct 30, 2010 7:07 pm
Forum: PHP - Code
Topic: cron job randomly once a day
Replies: 2
Views: 246

cron job randomly once a day

I want to create a cron job randomly once a day for my site's registration. The responsible file for registrations is a config file and I need to change the contents though a php file twice on day (on and off) I know the way for random cron job for example */n * * * * /usr/local/bin/php /home/user/d...