Morpheusweb.it - Risorse per webmaster: script, ASP.NET, C#, Visual Basic .Net, tutorial, asp, javascript, css, php, html, java, ADO, VBScript, forms, frames, Active Server Pages, Dynamic HTML, database, gratis per webmaster e webdesigner

PHPCounter

Semplice contatore che memorizza il numero di accessi in un file di testo.




<?
$version = "0,21";
$counterstyle = "image";
$invisible = "no";
$height = "19";
$width = "15";
$hitsfile = "";
$images = "";
if (!$hitsfile) $hitsfile = dirname(__FILE__)."/hits";
    if (!$images) $images = dirname(__FILE__)."/images";
        $images = str_replace($DOCUMENT_ROOT, "", $images);
        $hits = file($hitsfile);
        $hits = $hits[0] + 1;
        $fp = fopen($hitsfile, "w");
        fwrite($fp, $hits);
            if ($invisible != "yes") {
                if ($counterstyle == "text") {
                    echo $hits;
                }
                else {
                    $digit = strval($hits);
                        for ($i = 0; $i < strlen($hits); $i++) {
                            echo "<img src=$images/$digit[$i].gif height=$height width=$width alt=$hits>";
                        }
                }
            }
?>
Nota: lo script utilizza le immagini presenti nella cartella images del file zip


Scarica il Codice...


Stampa la pagina


 








Inizio pagina

risorse per webmaster

php

php

php, mail, database, banner
php, banner,

Vai nel sito Morpheusweb.it - Risorse per Webmaster troverai quello che stai cercando
php, banner,
Nel nostro sito molte informazioni: "Morpheusweb.it - Risorse per Webmaster" tratta di php, script, forms, mail, database
click here se non sei reindirizzato automaticamente al nostro sito.

php, script, banner, mail, database, , ,