Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

php


ttyler333's Avatar
Member
0 0

does any one know php and mysql… if so will you have a word with me


ghost's Avatar
0 0

I know lots. What do you need done? If it's something big, I hope you are willing to pay.


ghost's Avatar
0 0

Not sure if its the best way. But this will do execute certain code every half hour.

<?php
$day = file_get_contents("day");
$hour = file_get_contents("hour");
$now = date("g") /2 ;
$nowd = date("j");
if ($day > $nowd){
 print "It has been 30 min.";
}else{
 if ($now > $hour){
  print "It has been 30 min.";
  file_put_contents("hour", "$now");
 }else{
  print "Hasn't been 30 min.";
 }
}
?>

It should be pretty self explanatory. I haven't really tested it to make sure it works, so lemme know if you have any problems. Edit: Just be sure to create the two files first.


ghost's Avatar
0 0

You need a simple cron job. aldez, your script would need to be running 24/7