RE: [PHP] can I get at screen size ?

2004-04-06 Thread Tyler Replogle
hey,
yes it would take 2 steps i made a script like this before so i know, i 
stpent much time looking for it, but php doesn't get info like that because 
it is running on the server and not the computer or viewer's computer




From: E.H.Terwiel [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [PHP] can I get at screen size ?
Date: Mon, 05 Apr 2004 16:20:03 +0200
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
_
Limited-time offer: Fast, reliable MSN 9 Dial-up Internet access FREE for 2 
months! 
http://join.msn.com/?page=dept/dialuppgmarket=en-usST=1/go/onm00200361ave/direct/01/

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


Re: [PHP] can I get at screen size ?

2004-04-05 Thread Richard Davey
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

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



Re: [PHP] can I get at screen size ?

2004-04-05 Thread John Nichel
E.H.Terwiel wrote:
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
You can't grab the screen size with php.  You'll have to do it with 
JavaScript, and pass the values.

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


RE: [PHP] can I get at screen size ?

2004-04-05 Thread Hawkes, Richard
I wrote a JavaScript page that redirects to a PHP page like this:

html
head
titleRedirecter/title
script language=JavaScript
function redirectUser()
{
location.href=http://www.mysite.com/page2.php?width=; + screen.width
+ height= + screen.height;
}
/script
/head
body onLoad=redirectUser()
/body
/html

The PHP script can then store it as it wishes.

Good luck!
Richard

-Original Message-
From: Richard Davey [mailto:[EMAIL PROTECTED]
Sent: 05 April 2004 15:25
To: [EMAIL PROTECTED]
Subject: Re: [PHP] can I get at screen size ?


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

-- 
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.
==

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



RE: [PHP] can I get at screen size ?

2004-04-05 Thread Hawkes, Richard
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:[EMAIL PROTECTED]
Sent: 05 April 2004 15:20
To: [EMAIL PROTECTED]
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.
==

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