[PHP-DB] Screen size, browser on php

2003-02-27 Thread Petre NICOARA
Hi
I have a small problem.
I'm working on a traffic and banner xchange application, and my client
asked me to retrieve as info, for each banner that is displayed or for
each traffic entry the user's screen size, operating system, browser
type and original language. 
I've found this stuff into a javascript, but I need to be able to
retrieve it through php, only in one file. The javascript is doing this
through 2 file, one get the info, and passes it to a form in the other.
So, my dilemma is if
Is there a way of getting from php the screen size? (The rest are
revealed through the server variable user
agent($HTTP_SERVER_VARS['HTTP_USER_AGENT']) &
language-($HTTP_SERVER_VARS['HTTP_ACCEPT_LANGUAGE']))
Or, do you have knowledge of some script like that that's on the web ?
 
Thank you for your help.
Petre Nicoara


Re: [PHP-DB] Screen size, browser on php

2003-02-28 Thread Paul Burney
on 2/27/03 11:09 PM, Petre NICOARA at [EMAIL PROTECTED] appended the
following bits to my mbox:

> I've found this stuff into a javascript, but I need to be able to
> retrieve it through php, only in one file. The javascript is doing this
> through 2 file, one get the info, and passes it to a form in the other.
> So, my dilemma is if
> Is there a way of getting from php the screen size?

No.  What you could do, however, is something like:

- JavaScript code to get screen size

- use document.write to generate the image tag with additional parameters
for screen size, i.e.:



- Have your php script output the correct Content-type header for the image
and pass it through while logging the info you want.

HTH.

Sincerely,

Paul Burney




 


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php