You are here: Re: tracking bandwidth « PHP Programming Language « IT news, forums, messages
Re: tracking bandwidth

Posted by Mike Willbanks on 09/17/05 01:03

Skeleton Man,

> I would like a way to know if the client has cached these scripts, or if they
> are being sent for the first time, etc, so I can add the file size of the .js
> files to the bandwidth total..
>
> e.g. if ($client_has_not_cached_js_files){ $bandwidth += $size_of_js_file; }
>
> The chat script also allows for user icons, so again I would like to be able to
> tell if each image was cached or whether a new copy of the image was sent to the
> client.
>
> Is there any way I can get this info with Javascript and then use AJAX to post
> it back to the server ?

This is possible but why would you even want to run everything through a
PHP script first? There is no way of telling that the person got the
document unless PHP autoparses everything.

However, you might want to keep a log from apache on the information and
calculate it off of there log file, that will give you much more detail
to work with.

Mike

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация