Ver Mensaje Individual
  #6 (permalink)  
Antiguo 11/09/2003, 12:22
Avatar de oktubre
oktubre
 
Fecha de Ingreso: agosto-2003
Ubicación: en mi casa
Mensajes: 371
Antigüedad: 20 años, 7 meses
Puntos: 4
bueno, el código termina llamado a unas imágenes que representan los números.
Fijate si esto anda, la verdad soy el quemenos sabe

<?php
// aca estalo que le agregaría yo

$ceritos="00000";




//create a file called counter.txt and upload it to your server
//now open the file
$fp = fopen("counter.txt" , "r");
//read in the current count
$count = (int)fread($fp, 1024);
//increment the count by 1
$count++;
//close the file
fclose($fp);
//image display, get the lentgth of the count
for ($i = 0 ;$i < strlen($count) ; $i++)
{
$imgsrc = substr($count,$i ,1);
//display the image(s) note our images are in a folder located at
//images/count1/ change this to your location


echo "$ceritos $imgsrc ";
}
//open the counter file
$fp = fopen("counter.txt", "w");
//write the new count to the file
fwrite($fp, $count);
//close the file
fclose($fp);
?>

le cambie el llamdo a las imagenes por lallamada a las variables que representan los número del contador.

sino, te paso el código completo de un contador que uso yo, pero vas a necesitar una base de datos mysql
__________________
w32.oktubre@mm <----------------<<<<
prefiero cerrar la boca y parecer un tonto que abrirla y confirmarlo.