This code does not want to compile. So I tried making the time text into a string.
$swnow = date('10:00:01');
$vsp=$swnow;
echo $vsp;
if ($vsp > '10:00:01') {echo 'greater than 10';}
I want an action if my server is visited at 10am.
This code does not want to compile. So I tried making the time text into a string.
$swnow = date('10:00:01');
$vsp=$swnow;
echo $vsp;
if ($vsp > '10:00:01') {echo 'greater than 10';}
I want an action if my server is visited at 10am.
My own solution to this, to avoid GMT response and server drain. Use JavaScript universal) v8 engine.
<script type="text/javascript">
<!--
var currentTime = new Date()
var hours = currentTime.getHours()
var minutes = currentTime.getMinutes()
//hours between 10am and 16pm
if (hours>10){
if (hours<16){
document.write("phone anim");
}else{
document.write("phone static")
}
}
//-->
</script>