Bueno..mientras alguien se decide a decirme algo, yo iré añadiendo las pistas que encuentre:
Estas líneas de abajo (del click.php) son las que deberían incrementar automáticamente el contador..¿poqué no lo hacen?...¿porqué no se reflejan en el clicks.txt ?
__________________________________________________ ___________
// Let's found the line that starts with our ID number
$found=0;
$i=0;
foreach ($lines as $thisline) {
if (preg_match("/^($id\%\%)/",$thisline)) {
$thisline=chop($thisline);
// We found the line, now we get URL and count from the line
list($id,$added,$url,$count,$name)=explode("%%",$t hisline);
// Increase count by 1 and update this line
$count++;
$lines[$i]=$id."%%".$added."%%".$url."%%".$count."%%".$name. $newline;
$found=1;
break;
_______________________________________
Este es el contenido del clicks.txt:
__________________________________________________ ___________
1%%2005/09/07%%
http://www.tutorialgames.net/hacha.zip%%0%%
2%%2005/09/07%%
http://www.tutorialgames.net%%1%%TutorialGames
3%%2005/09/07%%
http://www.tutorialgames.net%%0%%
__________________________________________________ ___________
El %%
1%% lo he puesto manualmente (esto sería trampa ).
Creo que el clicks.txt está solo de escritura y no de lectura...?