Re: Number of connected users
| From: | Police Trainee | Date: | Fri, 15 Dec 2000 21:18:41 +0000 |
| Subject: | Re: Number of connected users | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-30589@lists.php.net to get a copy of this message | ||
you could try executing a command of netstat and
writing the data to something, then only printing the
information that has the appropriate domain...
i don't know if you would write it to an array or a
file or how you would go about selecting only those
entries with the appropriate domain- i'm just a
simpleton.
just an idea, plausable or otherwise.
-mark
--- Ignacio Vazquez-Abrams <ignacio@openservices.net>
wrote:
> On Fri, 15 Dec 2000, Francesco Rossi wrote:
>
> > Hi,
> > I work with Apache web server and php version 4.
> > How i can obtain the number of connected users ?
> > Thank
> >
>
> You can't, because HTTP doesn't work that way
> (usually). Once a request has
> been made, the browser disconnects from the server.
> There are such things as
> keepalive connections, but that isn't reliable
> either.
>
> --
> Ignacio Vazquez-Abrams <ignacio@openservices.net>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail:
> php-general-unsubscribe@lists.php.net
> For additional commands, e-mail:
> php-general-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>
=====
*****************************************************
* WebHosting from $15/mo! (25mb) *
* CGI,PHP,SSL,MySQL,SSI,Perl,C/C++,PGP,PGP mail, *
* shopping cart,stats,counter,mailing list manager, *
* online web-based control panel,ftp,anon ftp,more! *
* NO SETUP FEES! NO TRANSFER FEES! *
* Visit www.policetrainee.com for more information! *
__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/