THX for all tut, I've learnd lots of You, but now I'm getting an error. It says Deprecated: Function ereg() is deprecated. I really don't understand. Can anybody help me????
Nice tutorial. It's working for me in the sense that it's counting the amount of sessions, but my folder is not deleting sessions when browser is closed. Any ideas? thanks.
At all? It should do, sometimes takes a while. Although I know how to write this code, I'm not sure of the workings behind it so maybe someone else would be able to help, try the forums if not!
Well it's showing 117 ppl online and that couldn't be true cos nobody knows that site yet. But... it could be that my other site is hosted with the same company... the session files may be stored in the same folder. Which might be annoying :/
Hello!
THX for all tut, I've learnd lots of You, but now I'm getting an error. It says Deprecated: Function ereg() is deprecated. I really don't understand. Can anybody help me????
pocak87 1 month ago
@pocak87
Replace ereg function with: strstr($file, "sess")
dekipet 1 month ago
Baabai?
What the feck was that about? XD
Anyway, I tried this tut, did EVERYTHING you told me to, and the error I'm getting is a loop of ereg is deprecated. What can I do to solve this issue?
MarcusTheTechKat 1 month ago
you rock alex! i wish you become a millionaire.
elvisniperx 3 months ago
496 people on my site... i don't think so...
jimjimmy1995 7 months ago in playlist General Tutorials
Dosn't work to well when u have 12,000 past five mins.....Causes my server load to jump.
dcool96 7 months ago
I get:
Warning: readdir(): supplied argument is not a valid Directory resource
For the while-loop.. Any way to fix this?
Tokfranz00 8 months ago
Is there a way to make this working with another website without PHP..
I mean i have a website with PHP, but i want to count the online users from the non php website and they must be shown in the PHP one :D
i'm totally confused :D
toshkabg3 2 years ago
you'll have to use PHP to store sessions, and to echo them out into a variable.
thankfully, you can incorporate PHP w/HTML
lashtal 2 years ago
you are genius
ofetiger23 2 years ago
Nice tutorial. It's working for me in the sense that it's counting the amount of sessions, but my folder is not deleting sessions when browser is closed. Any ideas? thanks.
cullly 2 years ago
At all? It should do, sometimes takes a while. Although I know how to write this code, I'm not sure of the workings behind it so maybe someone else would be able to help, try the forums if not!
phpacademy 2 years ago
Well it's showing 117 ppl online and that couldn't be true cos nobody knows that site yet. But... it could be that my other site is hosted with the same company... the session files may be stored in the same folder. Which might be annoying :/
cullly 2 years ago
anyway.. if I figure it out, I'll let you know! Thanks a lot for the tutorial(s)... They are very helpful!
cullly 2 years ago
@phpacademy Yup, Alex, I just checked my TMP folder and there are 38 session files online. It says the same on my PHP script.
Acceptable76 6 months ago in playlist php
I think you need this: ini_set("session.cookie_lifetime", 0);
Put it before session_start()! With this line, the user's session will be deleted when the browser closes.
lnorby06 2 years ago
I love your tutorials. and there very helpfull.
Hope you bring us manny more tutorials.
Good luck to you.
ivands16 2 years ago 3
you rock rock rock! thanks again!
uncoverbrother 2 years ago 4
You're totally welcome!
phpacademy 2 years ago
Thanks dude.
NikkexD 2 years ago 2