Reply to Re: Calculating page bandwidth usage (PHP/Ajax)

Your name:

Reply:


Posted by FrobinRobin on 08/23/07 14:54

On 23 Aug, 15:37, "burgermeiste...@gmail.com"
<burgermeiste...@gmail.com> wrote:
> On Aug 23, 6:13 am, FrobinRobin <frobinro...@hotmail.com> wrote:
>
>
>
>
>
> > Hi,
>
> > I intend to use Ajax for a kiosk application, it's primary usage is to
> > retrieve live data from my DB, it's a fairly small amount of data (5
> > fields, of small data size and limited to 15 rows).
>
> > When I check my server logs I can see that the kiosk page has used a
> > fair amount of bandwidth this month, this is obviously because a
> > javascript timeout refreshes the data every 10 seconds. What I need to
> > know is how to calculate the bandwidth of the data for every ten
> > seconds and then I can do the math to work out usage hours * bandwidth
> > per hour.
>
> > This is probably a fairly simple task but I've never done it before so
> > any help would be much appreciated!
>
> > Many Thanks
>
> I'm not entirely sure that PHP is really the best solution to your
> problem. There may be a method of measuring bandwidth with PHP, but
> probably an easier way would simply be to use a network analyzer, for
> example, Ethereal. However, such software has little to do with PHP
> programming, so unless you still feel that PHP is the best solution,
> further inquiries should be directed to a more fitting newsgroups.
>
> Good luck!- Hide quoted text -
>
> - Show quoted text -

I just want to know how much data each ajax request is - I dont want
to start messing around with third party apps.
How about if I outputted the data to a file then used the filesize()
function? Would that give me the correct data size per ajax request?

[Back to original 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

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