Scusa..
Ho un *.php così:
Codice PHP:
<? echo '<html>
<head>
<LINK REL="stylesheet" HREF="style.css" TYPE="text/css">
<title>topframe</title>
</head>
<script src="js.js">
</script>
<body>
<p align="right"><font size="1">
<marquee>[url="JavaScript:;"]Benvenuto.. Se vuoi sendarmi una mail clicca..[/url]</marquee>
</font>
<font size="1">' ?>
<? echo date ("H:i:s l d F, Y") ?>
<? echo '
' ?>
<? include "counter.php" ;?>
<? echo 'Sei il visitatore numero ' ?><? echo $count ; ?>
<? echo '</font>
</p>
</body>
</html>' ?>
Mi dà questo errore..
Warning: Cannot add header information - headers already sent by (output started at f:\web\sito\topframe.php:16) in f:\web\sito\counter.php on line 31
Dove counter.php è lo script come l'hai postato sopra..
Ah.. non sono un gosu in php.. per unire nello stesso tag:
<? echo 'Sei il visitatore numero ' ?><? echo $count ; ?>
bisogna inserire un ;?
Così:
<? echo 'Sei il visitatore numero '; $count ; ?>
?