Users Online snippet PHP script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name: www.spoono.com
  • Last update:
  • Platform: Windows / Linux / BSD
  • Language: PHP
  • Price:Freeware
  • Company: Spoono (View more)

Users Online snippet script description:




Publisher review:
Users Online - Shows the amount of users online at a time. Users Online - Shows the amount of users online at a time.

Source Code//vars $file_name = "whois_online.dat.php"; $c_time = time(); $timeout = 300; $time = $c_time - $timeout; $ip = getenv("REMOTE_ADDR"); if(!file_exists($file_name)){ $fp = fopen($file_name, "w"); fwrite($fp, " "); fclose($fp); } //write to file $fp = fopen($file_name, "a"); $write = $ip."||".$c_time." "; fwrite($fp, $write); fclose($fp); //open file to as array, to count online $file_array = file($file_name); $online_array = array(); for($x = 1; $x = $time){ array_push($online_array, $ip); } }//end for $online = array_unique($online_array); $online = count($online); if($online == "1"){ print "User online: $online".""; }else{ print "Users online: $online".""; } ?>
Users Online snippet is a PHP script for Snippets scripts design by Spoono. It runs on following operating system: Windows / Linux / BSD.

Operating system:
Windows / Linux / BSD

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5