Visualizzazione dei risultati da 1 a 3 su 3
  1. #1

    Contatore Visite - Non Funziona

    Codice PHP:
    <?php

        
    /* Contatore visite */

        
    $visits_file "visitetot.txt";
        
    $uniques_file "visiteuni.txt";

        
    $counter fopen($visits_file"r");
        
    $total fread($counterfilesize($visits_file));
        
    fclose($counter);
        
    $total++;
        
    $counter fopen($visits_file"w");
        
    fwrite($counter$total);
        
    fclose($counter);

        
    $unique_hits fopen($uniques_file"r");
        
    $total_uniques fread($unique_hitsfilesize($uniques_file));
        if(
    $_COOKIE["unique_hit"] != "set") {
        
    setcookie("unique_hit""set"time()+2419200);
        
    $total_uniques++;
        }
        
    $uniques_hits fopen($uniques_file"w");
        
    fwrite($uniques_hits$total_uniques);
        
    fclose($uniques_hits);
    ?>
    Non appare niente nei due file.txt, come mai?

  2. #2
    Gli errori:

    Warning: fread(): Length parameter must be greater than 0 in C:\Program Files (x86)\EasyPHP-5.4.0RC4\www\sito\pages\adulti18\bikini.php on line 9

    Warning: fread(): Length parameter must be greater than 0 in C:\Program Files (x86)\EasyPHP-5.4.0RC4\www\sito\pages\adulti18\bikini.php on line 17

  3. #3
    Risolto da solo!
    Solved!

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.