RE: [PHP] can I get at screen size ?
| From: | Hawkes, Richard | Date: | Mon, 05 Apr 2004 14:44:23 +0000 |
| Subject: | RE: [PHP] can I get at screen size ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-182369@lists.php.net to get a copy of this message | ||
Scrap my last effort, this was the one I should have sent!
<html>
<body
onLoad="javascript:location.href='http://www.jumbobridge.com/phpinfo.php?width='+screen.width+'&height='+screen.height">
</body>
</html>
Obviously replacing the web site details and PHP page name, but using the
'width' and 'height' values as you please!
Cheerio (again!)
Richard
-----Original Message-----
From: E.H.Terwiel [mailto:eterwiel@planet.nl]
Sent: 05 April 2004 15:20
To: php-general@lists.php.net
Subject: [PHP] can I get at screen size ?
I want to write a Server Side PHP program that generates a HTML page
client side.
How would I get at the clients' screen size, before serving the
generated page ?
Would it be a two-step process: first let the client execute a piece
of JavaScript to generate Height and Width, and then send those values
to the PHP server (FORM, PUT) ?
Or can it be done in only one PHP program ?
frgr
Erik
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
==============================================================================
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==============================================================================