Link to home
Start Free TrialLog in
Avatar of dedsi
dedsiFlag for Sweden

asked on

Getting visitors screen resolution

I would like to be able to get the visitors screen resolution when he/she runs my CGI-script and then do various things depending on the results. Can this be done in some way?
ASKER CERTIFIED SOLUTION
Avatar of shivers
shivers

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
That's true, and even that only works if the user has JavaScript enabled AND has a browser that gives the information out.
Avatar of jhurst
jhurst

fork() is what you need.  It will create a copy of the running process and return the pid of that new process.  So, you form four copies of yourself and have them do the work, or even do a system() to do the work.  Then you can check for the pid status as you want.
Avatar of dedsi

ASKER

jhurst,

I dont really understand your answer. Can you please explain a little bit more in detail what I should do to be able to get the visitors screen resolution using this fork()?
Ignore my answer.  EE has messed up.  I had posted this answer to a completely different question.  Sorry!
Avatar of dedsi

ASKER

Okay.
If you wanted to save yourself the hassle of figuring out how to do this, you could install a HitBox counter (http://www.hitbox.com and look for "Get a Hitbox") on your page. Sure you have to display a graphic, but for the "inconvenience" you get not only screen resolutions but a whole lot of other useful traffic information as well.