Re: [PHP] Crazy idea about detecting visitor's connection speed

2002-07-16 Thread Jason Wong

On Tuesday 16 July 2002 22:43, César Aracena wrote:
> I think that the best way you can achieve this, considering all the
> troubles and different configurations you will have to make for each
> user, is to make them choose the type of connection they want, and set a
> cookie in the visitor's browser with a one year life time which stores
> that machine/visitor's connection.

Making the user choose is the wisest option. As a user, just because I have a 
fast connection, it doesn't necessarily mean I would want the 'bloated' 
version of the website. And conversely, if I had a slow connection I /might/ 
want to wait 15 mins for the 'enhanced' version to download. 

Don't decide for the user what the user can decide for themselves :)

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
Everything you read in newspapers is absolutely true, except for that
rare story of which you happen to have first-hand knowledge.
-- Erwin Knoll
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Crazy idea about detecting visitor's connection speed

2002-07-16 Thread César Aracena

I think that the best way you can achieve this, considering all the
troubles and different configurations you will have to make for each
user, is to make them choose the type of connection they want, and set a
cookie in the visitor's browser with a one year life time which stores
that machine/visitor's connection.

C.

> -Original Message-
> From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 16, 2002 7:57 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP] Crazy idea about detecting visitor's connection
speed
> 
> > I feel the idea is not accurate. My ip address (a static one from my
> > isp) would remain the same if I went to ADSL from my current
> > dial-up access.
> >
> > HTH
> > Chris
> 
> Yes. And how about all corporate networks? If I'm accessing your site
from
> our office I would get the low-speed version until you added our
> domainname
> to your list. Then what if I connect to our modem-pool from home...
Then
> you
> wouldn't know I connected through a modem.
> 
> And my ISP at home doesn't have anything in their dns-names to
> differentiate
> adsl from dial-up users.
> Just my thoughts...
> Regards
> Joakim Andersson
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Crazy idea about detecting visitor's connection speed

2002-07-16 Thread Alberto Serra

ðÒÉ×ÅÔ!

[EMAIL PROTECTED] wrote:
>>I feel the idea is not accurate. My ip address (a static one from my 
>>isp) would remain the same if I went to ADSL from my current 
>>dial-up access.
>>
>>HTH
>>Chris
> 
> 
> Yes. And how about all corporate networks? If I'm accessing your site from
> our office I would get the low-speed version until you added our domainname
> to your list. Then what if I connect to our modem-pool from home... Then you
> wouldn't know I connected through a modem.
> 
> And my ISP at home doesn't have anything in their dns-names to differentiate
> adsl from dial-up users.
> Just my thoughts...
> Regards
> Joakim Andersson

Yes, although the problem of determining users' bandwidth *is* real, I 
guess solution is not to be found in whatver IP address processing you 
might do.

But you might consider sampling your actual communication, like sending 
the browser a sample document of fixed length that will execute some 
answer action from the browser. If you can time the lenght of this loop 
you can have a rought idea of what the user bandwidth is at the moment.

Besides, no matter what your bandwidth to your ISP is, connection 
performance is influenced by server bandwidth as well. So I guess the 
only reliable factor would be some *real* measure. Which is far from 
being absolute, as the network continuously varies its state. Probably 
you should repeat this step over and over in time to get some average 
valuable value, that you could then use (for example) to reprocess 
images on the fly and have output graphic resolution degrade with 
connection quality to keep speed close to constant (just an idea, not 
that I'll try to do that very soon) :).

Still your test must take the most minimal transmission load ever 
because it would add up and further lower the bandwidth of those who are 
sitting on a poor connection. Maybe you could add it to the banners. It 
could serve both as an "okay, printed" mark *and* a performance 
benchmark. Just have the timestamp recomputed on an invisible iframe (or 
have something sent along within the link the next time you load a 
banner, it depends on how quick you need an answer).

Won't work for *all* browsers, but say 90% of your users will give you 
the data you look for. You'll have a default strategy that appies when 
no answer comes, of course.

For those having banners sent out at regular intervals the average value 
would be reasonably close to the truth, and with little overhead. Of 
course you would need to take off the graphical load (size of the image) 
from your *packet* dimension, when computing the result.

Just my 2 kopeki :)

ðÏËÁ
áÌØÂÅÒÔÏ
óÅÒÒÁ


@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Crazy idea about detecting visitor's connection speed

2002-07-16 Thread joakim . andersson

> I feel the idea is not accurate. My ip address (a static one from my 
> isp) would remain the same if I went to ADSL from my current 
> dial-up access.
> 
> HTH
> Chris

Yes. And how about all corporate networks? If I'm accessing your site from
our office I would get the low-speed version until you added our domainname
to your list. Then what if I connect to our modem-pool from home... Then you
wouldn't know I connected through a modem.

And my ISP at home doesn't have anything in their dns-names to differentiate
adsl from dial-up users.
Just my thoughts...
Regards
Joakim Andersson


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Crazy idea about detecting visitor's connection speed

2002-07-16 Thread Chris Hewitt

Jason Wong wrote:

>On Tuesday 16 July 2002 17:12, Cedric Veilleux wrote:
>
>>  What I was thinking about is doing a reverse dns lookup on the client's IP
>>and try to determine quickly if he's on a low or hi speed connection. 
>>
>
>You have to bear in mind that reverse DNS lookups are not instantaneous. It 
>can take anywhere up to around 30 secs for it timeout. Are you prepared to 
>make your users wait that long?
>
I feel the idea is not accurate. My ip address (a static one from my 
isp) would remain the same if I went to ADSL from my current dial-up access.

HTH
Chris



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Crazy idea about detecting visitor's connection speed

2002-07-16 Thread Jason Wong

On Tuesday 16 July 2002 17:12, Cedric Veilleux wrote:

>   What I was thinking about is doing a reverse dns lookup on the client's IP
> and try to determine quickly if he's on a low or hi speed connection. 

You have to bear in mind that reverse DNS lookups are not instantaneous. It 
can take anywhere up to around 30 secs for it timeout. Are you prepared to 
make your users wait that long?

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
"Never make any mistaeks."
(Anonymous, in a mail discussion about to a kernel bug report.)
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php