Hi all,
I really like all the info that's on this page, anyone know how it would be done? It must link to the stats in a common way that every body could set up for their site surely? Anyone? http://www.w3schools.com/browsers/browsers_stats.asp
Printable View
Hi all,
I really like all the info that's on this page, anyone know how it would be done? It must link to the stats in a common way that every body could set up for their site surely? Anyone? http://www.w3schools.com/browsers/browsers_stats.asp
Hmm... i don't know if i understood you correctly. do you want to place those statistics on your website or something like that ?
That will require server-side scripting, and most likely a database.
PHP Ref:
http://www.php.net/
PHP/MySql (database) Tutorial:
http://php-mysql-tutorial.com/
It's not an easy task... It may not even be possible with PHP, as the page given is done with ASP (note the .asp extension). As mentioned before in these forums, there is no "single" script for these tasks.
Oh i get it now. You can collect that type of information very easily using server -side language like PHP. you could store all the data in a database such as MySQL and then tabulate them in tables for everyone to see. I could help you on this. Just let me know if your hosting provider supports PHP and MySQL.
The OS detection may be a bit hard though...
Os detection and other resolution, etc can be detected using javascript. ;)
Use JS to do the OS and screen resolution detection, then send that info to a PHP script to store it in the database. Not so hard.
The OS detection would not be done using Javascript, it would be done by parsing the User-Agent header server-side. Note that none of this data is reliable: Javascript can be disabled and/or modified, and the User-Agent header is arbitrary.
A sample User-Agent header:See that "Linux?" That's my OS. The browser needn't always report the OS (correctly or at all) in the User-Agent or any client-side mechanism you might devise, hence the unreliability of the data.Code:User-Agent: Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.6 (like Gecko)