<?php header('Access-Control-Allow-Origin: https://nuel.pw'); $fn = 'count.txt'; $current = intval(file_get_contents($fn)); session_start(); if ($_SESSION['count-nuel'] !== 1) { $_SESSION['count-nuel'] = 1; $current++; $fp = fopen($fn, 'w'); $contents = fwrite($fp, $current); fclose($fp); } echo $current;