Is this possible in PHP? ( 7 Views )

no kitty!
  1. Hi,

    I know that you can use some PHP functions to get the IP address, browser info, OS info, etc.. of your site visitor.

    But is there anyway I can detect their internet connection speed? eg, regular modem, Cable, etc...

    I know that larger websites like Yahoo and AOL can, but I don't know how.

    I run a PHP site that has a Flash header intro. This header is 200 KB.

    I personally am on Cable. So, it doesn't take more than one second for the flash intro header to load. But I'm worried that those who are on 56K will get annoyed by waiting for the header to load and will leave.

    I was hoping I can make two headers. One Flash; and one regular image. And then decide which one to show the user depending on their connection speed.

    Thanks for any help.

    Jimmy

    (servet, Mauritania)

  2. Umm... Shouldn't think so not with PHP ? Might, just might be possible witn an exposed Javascript object ? Should look at the Javascript1.5 reference, or is it ECMA now ?

    (memati, Bahamas)

  3. This could kinda be done in a serverside language, but probably much better to do in javascript. I looked at another site that does it, and they basically loaded a page in a hidden frame in it with 500k of garbage, which then called a function on the parent page which said how long time it took to load the page.

    (mustafa, Nicaragua)

  4. If it's just a Flash header on your site then why is it 200kb that is my question?

    -J

    (efekan, Morocco)

  5. Maybe you could use PHP to ping the clients IP and take a rough guess at their bandwidth using that result?

    (şahin, Qatar)

  6. or even ping a couple times, (2-3)

    (hayrettin, Spain)

  7. Pinging might not be so helpful as the sever load could be different on time of day/night day of week etc no ?

    (yagmur, Japan)



Related Topics ... (or search in 1.720.883 topics !)

php output not seen, basic apache/php configuration problem? (yanks first php script) (3)
php anthology vol ii -----> access control 8.php (but in my case randomimage.php) (5)
php parser causes a 15 second stall in a .php file, even when no php code present? (3)
php intructions not in http://www.php.net/docs.php (3)
can i change php.ini with a php script on a php web page? (6)
silly php question - writing php file from php (6)
php anthology: vol. 2 ch. 1 11.php & 12.php (1)
replacing [php]file.php[/php] with code (9)
page1.php includes page2.php that references page3.php - getting references strait (4)
php settings needed to run formmail.php? or formmail.php alternative? (3)




copyright © 2007-2031 Pfodere.COM ( 6 Pfoyihuee Online )

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 
0.6055