
11/09/2003, 12:02
|
 | | | Fecha de Ingreso: diciembre-2002 Ubicación: En todas partes
Mensajes: 135
Antigüedad: 22 años, 2 meses Puntos: 0 | |
jejeje os he dicho que no soy programador???
este es el codigo que tengo:
<?php
//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 "<img src =\"/contador/count/01/" . $imgsrc . ".gif\">";
}
//open the counter file
$fp = fopen("counter.txt", "w");
//write the new count to the file
fwrite($fp, $count);
//close the file
fclose($fp);
?>
donde puñetas meto eso que me decis????
thanks |