Results 1 to 10 of 10

Thread: Want To Make This Page

  1. #1
    Join Date
    Apr 2006
    Posts
    584
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Want To Make This Page

    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

  2. #2
    Join Date
    Mar 2007
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hmm... i don't know if i understood you correctly. do you want to place those statistics on your website or something like that ?

  3. #3
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    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.
    - Mike

  4. #4
    Join Date
    Mar 2007
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

  5. #5
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    The OS detection may be a bit hard though...
    - Mike

  6. #6
    Join Date
    Mar 2007
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Os detection and other resolution, etc can be detected using javascript.

  7. #7
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    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.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  8. #8
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    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.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  9. #9
    Join Date
    Mar 2007
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Twey View Post
    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.

  10. #10
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    A sample User-Agent header:
    Code:
    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.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •