Here, how you can display total number of online user in your webpage you want. Just include file name, which I have given file name as online-user.php here.