Re: can I get at screen size ?
| From: | Richard Davey | Date: | Mon, 05 Apr 2004 14:25:16 +0000 |
| Subject: | Re: can I get at screen size ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-182366@lists.php.net to get a copy of this message | ||
Hello,
Monday, April 5, 2004, 3:20:03 PM, you wrote:
EHT> I want to write a Server Side PHP program that generates a HTML
EHT> page client side. How would I get at the clients' screen size,
EHT> before serving the generated page ? Would it be a two-step
EHT> process: first let the client execute a piece of JavaScript to
EHT> generate Height and Width, and then send those values to the PHP
EHT> server (FORM, PUT) ? Or can it be done in only one PHP program ?
PHP has no real interaction with the users system what-so-ever, so
it's not possible for it to get the screen size automatically. You
would have to pass values in from JavaScript.
--
Best regards,
Richard Davey
http://www.phpcommunity.org/wiki/296.html