Jump to content


Finding Users Information

  • Please log in to reply
4 replies to this topic

#1 complex05

  • Members
  • PipPipPip
  • Advanced Member
  • 124 posts

Posted 29 March 2006 - 05:47 PM

Hello, I'm building an advertising script and I need my script to find some information about the users viewing the ads.

I need the following information:

Operating System
Screen Resolution

I tried googling this and found nothing. Anyone have any ideas?

#2 ober

  • Staff Alumni
  • Advanced Member
  • 5,337 posts
  • LocationEast Coast, USA

Posted 29 March 2006 - 05:49 PM

You'll have to use something else to get that info. PHP is a SERVER SIDE scripting language and doesn't have access to those parameters. You MIGHT be able to grab the country via headers or IP translation, but PHP alone cannot get you all that information.

Info: PHP Manual

#3 complex05

  • Members
  • PipPipPip
  • Advanced Member
  • 124 posts

Posted 29 March 2006 - 05:52 PM

Do you know any tools I can use that will find that information for me? My server's statistics is able to find that information, we use cpanel, is there some way to use the same functions or something?

#4 Eddyon

  • Members
  • PipPipPip
  • Advanced Member
  • 30 posts
  • LocationEngland

Posted 29 March 2006 - 05:53 PM

[a href=\"http://www.phpfreaks.com/phpref/120.php\" target=\"_blank\"]Browser[/a] - Tells what the user's browser is capable of, thats about it.

#5 AshAsirus

  • New Members
  • Pip
  • Newbie
  • 5 posts

Posted 29 March 2006 - 07:08 PM

can be done mostly with JS

browser name: navigator.appName
browser version: navigator.appVersion

resolution: screen.width & screen.height

os: navigator.userAgent

you can google them to figure out how to use them

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users