I was given a script with different variables that are based on date and time on the top of XHTML Strict page.
<?php
date_default_timezone_set('America/Los_Angeles');
$time = new DateTime();
if($time < new DateTime('2011-10-31 18:00')){
$title="Before Halloween";
$cb1="2011,10,31,18,0";
}else if
...
?>
Halfway through the HTML code I have a second PHP script:
<?php
date_default_timezone_set('America/Los_Angeles');
countdown(2011,10,31,18,0);
function countdown($year, $month, $day, $hour, $minute)
{
...
?>
How can I echo $cb1
from the upper script into the second script so the third line looks something like countdown(echo $cb1); and updates automatically based on the upper script?