We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Found this:
<?php session_set_cookie_params(10800); session_start(); ?>
<?php $counterstand = intval(file_get_contents("counter.txt")); if(!isset($_SESSION['counter_ip'])) { $counterstand++; file_put_contents("counter.txt", $counterstand); $_SESSION['counter_ip'] = true; } echo $counterstand; ?>
Source: https://www.php-einfach.de/experte/php-codebeispiele/besucherzaehler-mit-reload-sperre/
The text was updated successfully, but these errors were encountered:
Really easy to integrate into theme by including session_set_cookie_params(10800); to index.php and
session_set_cookie_params(10800);
$counterstand = intval(file_get_contents(dirname(__FILE__).'/'.'counter.txt')); if(!isset($_SESSION['counter_ip'])) { $counterstand++; file_put_contents(dirname(__FILE__).'/'.'counter.txt', $counterstand); $_SESSION['counter_ip'] = true; } // echo dirname(__FILE__).'/'.'counter.txt'; echo 'Total hits: '.$counterstand;
to the theme.
or just counter.txt then counter file will be in Pluck's root
Sorry, something went wrong.
No branches or pull requests
Found this:
Source: https://www.php-einfach.de/experte/php-codebeispiele/besucherzaehler-mit-reload-sperre/
The text was updated successfully, but these errors were encountered: