Topic: Php - detect connection speed of client (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=31586" title="Pages that link to Topic: Php - detect connection speed of client (Page 1 of 1)" rel="nofollow" >Topic: Php - detect connection speed of client <span class="small">(Page 1 of 1)</span>\

 
argo_navis
Nervous Wreck (II) Inmate

From:
Insane since: Apr 2008

posted posted 01-13-2010 00:52

...I am involved in a humanitarian effort. We reach av. 50 countries so far, problem is :
Mongolia and Western Africa, in dire need of solutions (like this one, but free
http://www.sciencedaily.com/releases/2007/06/070604222124.htm)

Well, they don't have broadband. The site is a drupal 6, nothing fancy, and I wonder how
to automatically select and serve a lightweight template based on client speed.

Any help would be greatly appreciated : I've considered js, but timing isn't accurate enough afaik, and depends on too many factors.
Can't find http headers for the purpose.

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

posted posted 01-13-2010 01:00

You could do some geolocation based on the ip of the requests to default to the type of template that seem the most appropriate based on the data you have about the various locations.

argo_navis
Nervous Wreck (II) Inmate

From:
Insane since: Apr 2008

posted posted 01-13-2010 01:17

Brilliant workaround, as always, thank you Do you have, by any chance, advice on which servers/services to use for the purpose?
(I can google it, but if you have preferences, I like 'tried and tested').

argo_navis
Nervous Wreck (II) Inmate

From:
Insane since: Apr 2008

posted posted 01-13-2010 01:57

Quickie : geolocation still appears to be a jungle, and drupal modules too, but the NetGeo service and relevant php classes might do the trick.

For the record and thanks a bunch.

argo_navis
Nervous Wreck (II) Inmate

From:
Insane since: Apr 2008

posted posted 01-13-2010 02:04

( last but not least : nah, it's a jungle - DNSBL needed.. http://en.wikipedia.org/wiki/Geolocation_software )

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

posted posted 01-13-2010 10:57

All I was suggesting is to do some coarse geolocation in order to default to either the light weight or full fledge template on their first visit, and provide a simple link for the users to switch between the two if she feels like it. A simple IP to country mapping should be enough to provide a decent default. It's not perfect but it should be simple to implement and have very little negative impact.

HTH,



(Edited by poi on 01-13-2010 13:01)

argo_navis
Nervous Wreck (II) Inmate

From:
Insane since: Apr 2008

posted posted 01-13-2010 14:05

Myeah, sounds cool - and it certainly is better than a my previous options or a fine grained approach, am nitpicking some, but it matters to me. A lot.

Sharing my references too : Afrinic have a simple search engine, a Restful service of sorts, for that purpose, indeed it is easy there, and this thread now contains all one could want to know about the possibilities.

amperage
Nervous Wreck (II) Inmate

From: San Antonio, TX
Insane since: Aug 2010

posted posted 08-09-2010 20:05

<--- Knows it's an old post...


Could try an .htaccess file and rule out their subnets to redirect them towards a different part of the site with all the same information but a different lightweight template.

Kind of a 72.128.34.0/24 (example) for the lines in your htaccess file.

_______________________
http://www.txlans.com
~
# rm -rf



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu