Ok here is my code:
<html>
<head>
<title> PHP Test Page </title>
</head>
<body>
<?php
echo date("H:i");
echo gmdate("M d Y");
$counter_file = "count.dat";
if(!($fp = fopen($counter_file, "r"))) die ("Cannot open $counter_file.");
$counter = (int) fread($fp, 20);
fclose($fp);
$counter++;
echo "You're visitor No. $counter.";
$fp = fopen($counter_file, "w");
fwrite($fp, $counter);
fclose($fp);
?>
</body>
</html>
this makes output saying:
18:32Mar 12 2007You're visitor No. 5.
how can i make it so that they are on different lines, e.g
18:32
Mar 12 2007
You're visitor No. 5.