Posted by koriel Mon 19th Mar 2007 11:13 - Syntax is PHP - 68 viewsRun this post in the PHP shell
Download | New Post | Modify | Hide line numbers
PHP parser reported no syntax errors in this post!
  1. function getUsersOnline() {
  2.    $count = 0;
  3.  
  4.    $handle = opendir(session_save_path());
  5.    if ($handle == false) return -1;
  6.  
  7.    while (($file = readdir($handle)) != false) {
  8.        if (ereg("^sess", $file)) $count++;
  9.    }
  10.    closedir($handle);
  11.  
  12.    return $count;
  13. }

PermaLink to this entry https://pastebin.co.uk/12040
Posted by koriel Mon 19th Mar 2007 11:13 - Syntax is PHP - 68 viewsRun this post in the PHP shell
Download | New Post | Modify | Hide line numbers

 

Comments: 0