Re: Screen size, browser on php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



on 2/27/03 11:09 PM, Petre NICOARA at pnicoara@rdslink.ro 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.:

<img src="somescript.php?w=615&h=420">

- 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
<http://paulburney.com/>

<?php
    while ($self != "asleep") {
        $sheep_count++;
    }
?>

 


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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux