i dont know where i take this code, but was usefull for all whos doesnt know much the languange .php
create a own script with name "countdown.php" and paste this code:
after your got the archive create and edited, go to the your "layout" and paste on header from your website this another code for declare another archive "countdown.php"
and now copy last code and put where your want for show it
And finish sorry for my basic english >.<, rep+ bye!
create a own script with name "countdown.php" and paste this code:
PHP:
// Define your target date here
$targetYear = 2010;
$targetMonth = 6;
$targetDay = 20;
$targetHour = 23;
$targetMinute = 00;
$targetSecond = 00;
// End target date definition
$targetDate = mktime($targetHour,$targetMinute,$targetSecond,$targetMonth,$targetDay,$targetYear);
$actualDate = time();
$secondsDiff = $targetDate - $actualDate;
$remainingDay = floor($secondsDiff/60/60/24);
$remainingHour = floor(($secondsDiff-($remainingDay*60*60*24))/60/60);
$remainingMinutes = floor(($secondsDiff-($remainingDay*60*60*24)-($remainingHour*60*60))/60);
$remainingSeconds = floor(($secondsDiff-($remainingDay*60*60*24)-($remainingHour*60*60))-($remainingMinutes*60));
$dateFormat = "Y-m-d H:i:s";
$targetDateDisplay = date($dateFormat,$targetDate);
$actualDateDisplay = date($dateFormat,$actualDate);
PHP:
include('dir/countdown.php');
PHP:
<?php echo "$remainingDay days, $remainingHour hours, $remainingMinutes minutes, $remainingSeconds seconds";?>
And finish sorry for my basic english >.<, rep+ bye!