Re: Screen size, browser on php

From: Date: Fri, 28 Feb 2003 14:42:47 +0000
Subject: Re: Screen size, browser on php
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-25995@lists.php.net to get a copy of this message
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++; } ?>

« previous php.db (#25995) next »