Robiłem więc sposobem zdunka zapodałem w headzie meta i nic, nadal nie odswieża mi tego objektu;/
Oto kod:
<html>
<head>
<title>NanoOnline - Online Graphical PHP Clock</title>
<!--
<meta http-equiv="refresh" content="1; URL=http://www.nanohost.com/scripts/clock.php3">
-->
</head>
<body>
<?
$hours = date("h");
$minutes = date("i");
$seconds = date("s");
$ampm = date("a");
/* The , 0, 1 means that it starts from the beginning, and retrieves the first character in the string */
$hours1= substr("$hours", 0, 1);
$hours2 = substr("$hours", 1, 1);
$minutes1 = substr("$minutes", 0, 1);
$minutes2 = substr("$minutes", 1, 1);
$seconds1 = substr("$seconds", 0, 1);
$seconds2 = substr("$seconds", 1, 1);
/* AM or PM */
if($ampm == "am")
{
$time_ampm = "am.gif";
}
else
{
$time_ampm = "pm.gif";
}
/* Prints the Hours */
print "<img src=\"clock/$hours1.gif\"><img src=\"clock/$hours2.gif\"><img src=\"clock/colon.gif\">";
/* Prints the Minutes */
print "<img src=\"clock/$minutes1.gif\"><img src=\"clock/$minutes2.gif\"><img src=\"clock/colon.gif\">";
/* Prints the Seconds, and whether it's AM or PM */
print "<img src=\"clock/$seconds1.gif\"><img src=\"clock/$seconds2.gif\"><img src=\"clock/$time_ampm\">";
?>
</body>