<?
$extension = ".zip"; // EXTENSION DE ARCHIVOS
$mail = "
[email protected]"; // TU EMAIL..
if (file_exists("$get$extension"))
{
header("location: $get$extension");
$file = fopen("counters/$get.txt","r");
$count = fread($file, 100);
$countplus = ($count + 1);
fclose($file);
$fileb = fopen("counters/$get.txt","w");
fwrite($fileb, $countplus, 100);
fclose($fileb);
}
else echo "<font face=Verdana size=1>";
echo "<center><br><br>El archivo con extension [<b>$get$extension</b>] no existe.<br>";
echo "Si persiste el problema contacte <a href='mailto:$mail'>aqui.</a>.";
?>
entonces abres en el explorer:
www.tuserver.com/download.php?get=NOMBRE_DEL_ARCHIVO sin .zip, abres una carpeta en tu server (counters) ej:
www.tuserver.com/counters
Ahi abrira los archivos txt automaticamente de los contadores... los archivos .zip deben ir donde este el archivo download.php
entonces haces una web.php donde incluyas:
<?php include("counters/NOMBREDELFILE.txt"); ?>
para eso debes de dar chmod en la carpeta de counters,
si tienes problemas postealo aki!