Jump to content

Archived

This topic is now archived and is closed to further replies.

complex05

Finding Users Information

Recommended Posts

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:

Browser
Operating System
Screen Resolution
Country

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
[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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.