PDA

View Full Version : Want To Make This Page



tomyknoker
03-19-2007, 11:22 AM
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

Sparaker
03-21-2007, 03:50 PM
Hmm... i don't know if i understood you correctly. do you want to place those statistics on your website or something like that ?

mburt
03-21-2007, 04:07 PM
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.

Sparaker
03-21-2007, 04:15 PM
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.

mburt
03-21-2007, 04:39 PM
The OS detection may be a bit hard though...

Sparaker
03-21-2007, 04:52 PM
Os detection and other resolution, etc can be detected using javascript. ;)

thetestingsite
03-21-2007, 04:53 PM
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.

Twey
03-21-2007, 05:17 PM
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.

Sparaker
03-21-2007, 05:19 PM
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.

Os can't be determined by the User-Agent header forwarded by the browsers. :p

Twey
03-21-2007, 05:37 PM
A sample User-Agent header:
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.6 (like Gecko)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.