title: How to see how many people are on your site and store as variable?
body: <p>I've seen many online tools about tracking how many people are currently/have visited a website.</p>
  
  <p>I was wondering how it would be done, so no need for third-party websites. I would like to be able to count how many people are currently on the site, and update it globally to everyone on the site.</p>
  
  <p>Example: Client one goes to my site (currently: 01 user(s) on the site) then Client two connects, now both Clients will have the counter updated (currently: 02 user(s) on the site).</p>
  
  <p>The reason why I'd like it to be stored as a variable is for notifications when a certain amount of people are on the site. Example: There are 50 or more people on the site!</p>
  
  <p>If possible, I'd like to mainly use PHP, SQL and/or JS/jQuery. I'm not really sure where to start with this, but I was thinking of using a Text Document with PHP Updating it and then using <code>jQuery.load()</code></p>