I was wondering if you could help me!
I have a script that uses PHP 'time' features and need to make the script believe it is 7 hours ahaead of server time (Dathorn in USA and I am in UK)
Is this easy to do? Can anyone assist in making this script adjust my time?
This is amy script:
Thanks a lot
Karl
I have a script that uses PHP 'time' features and need to make the script believe it is 7 hours ahaead of server time (Dathorn in USA and I am in UK)
Is this easy to do? Can anyone assist in making this script adjust my time?
This is amy script:
PHP Code:
<?php
$date = date("Ymd");
$NumEvents=0;
$handle=opendir('../event_dates');
while (($file = readdir($handle))!==false) {
if ($file >= $date) {
include("../event_dates/$file");
$NumEvents=$NumEvents + 1;
}
}
closedir($handle);
if($NumEvents > 0)
{
echo "$NumEvents events are scheduled";
}
else
{
echo "<strong class='red'>Sorry, no events are planned at present</strong>";
}
?>
Karl

Comment