hola, aqui les dejo un contador de visitas que hice
<?
//Powered By The Legend Hack
$archivo="contador.txt";
$contador="0";
$num_max="9999999";
if ( file_exists ( $archivo )) {
$fp = fopen($archivo,"r");
$contador = fgets($fp, 26);
fclose($fp);
} else {
$fp = fopen($archivo,"w");
fputs($fp,"1");
fclose($fp);
}
++$contador;
$fp = fopen($archivo,"w+");
fwrite($fp, $contador, 26);
fclose($fp);
if ($contador>=$num_max) {
$imagen = imagecreatefromgif("fondo.gif");
$colText = imagecolorallocate($imagen, 255, 255, 255);
imagestring($imagen, 5, 16, 7, $num_max , $colText);
header("Content-type: image/gif");
imagegif($imagen);
}
else
{
$imagen = imagecreatefromgif("fondo.gif");
$colText = imagecolorallocate($imagen, 255, 255, 255);
imagestring($imagen, 5, 16, 7, $contador , $colText);
header("Content-type: image/gif");
imagegif($imagen);
}
?>
aqui la imagen de fondo xD
Los enlaces son solo para miembros.
Registrate o
iniciá sesión
bueno, espero que les sirva

solo guardan el codigo con el nombre que quieran y lo suben a un hosting junto con la imagen de fondo.
Los enlaces son solo para miembros.
Registrate o
iniciá sesiónSaludos!