[PHP] User Screen Resolution

2004-10-27 Thread Web Guy
I am new to PHP and couldn't find any Globals for the User's Screen
Resolution. (don't laugh at me please)

I used to use a Javascript function to pass the resolution using
screen.width and screen.height.

What I am actually trying to do is make a page resize depending on screen
resolution, in case that helps anyone.

 

Thanks for your help.

 

Ben

 



Re: [PHP] User Screen Resolution

2004-10-27 Thread Larry E . Ullman
I am new to PHP and couldn't find any Globals for the User's Screen
Resolution. (don't laugh at me please)
I used to use a Javascript function to pass the resolution using
screen.width and screen.height.
What I am actually trying to do is make a page resize depending on 
screen
resolution, in case that helps anyone.
Using PHP you can neither find the screen resolution nor resize the 
browser window. Both must be accomplished using JavaScript.

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


Re: [PHP] User Screen Resolution

2004-10-27 Thread Matthew Sims
 I am new to PHP and couldn't find any Globals for the User's Screen
 Resolution. (don't laugh at me please)

 I used to use a Javascript function to pass the resolution using
 screen.width and screen.height.

 What I am actually trying to do is make a page resize depending on screen
 resolution, in case that helps anyone.



The reason why this worked for javascript is because it is a client side
instruction set. PHP is a server side instruction set. PHP has no idea
what resolution the user's screen is nor can it resize the browser. In
fact, PHP can't do anything with the browser.

I should just copy and save the above and paste it into everyone one of
these types of questions. ;)

-- 
--Matthew Sims
--http://killermookie.org

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



Re: [PHP] User Screen Resolution

2004-10-27 Thread Robby Russell
On Wed, 2004-10-27 at 15:25 -0700, Web Guy wrote:
 I am new to PHP and couldn't find any Globals for the User's Screen
 Resolution. (don't laugh at me please)
 
 I used to use a Javascript function to pass the resolution using
 screen.width and screen.height.
 
 What I am actually trying to do is make a page resize depending on screen
 resolution, in case that helps anyone.
 

go back and find your javascript function. PHP is server side not client
side.

-Robby


-- 
/***
* Robby Russell | Owner.Developer.Geek
* PLANET ARGON  | www.planetargon.com
* Portland, OR  | [EMAIL PROTECTED]
* 503.351.4730  | blog.planetargon.com
* PHP/PostgreSQL Hosting  Development
* --- Now supporting PHP5 and PHP4 ---
/


signature.asc
Description: This is a digitally signed message part


RE: [PHP] User Screen Resolution

2004-10-27 Thread Vail, Warren
This is because there is no way for PHP to run in the browser.  Wouldn't it
be nice to have a plug-in that allowed PHP to run there, perhaps as a
JavaScript replacement?  Guess it would have to be a throttled back version
of PHP to adhere to sandbox security concerns.  Sigh

Warren Vail


-Original Message-
From: Larry E. Ullman [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 27, 2004 3:40 PM
To: Web Guy
Cc: PHP
Subject: Re: [PHP] User Screen Resolution


 I am new to PHP and couldn't find any Globals for the User's Screen 
 Resolution. (don't laugh at me please)

 I used to use a Javascript function to pass the resolution using 
 screen.width and screen.height.

 What I am actually trying to do is make a page resize depending on
 screen
 resolution, in case that helps anyone.

Using PHP you can neither find the screen resolution nor resize the 
browser window. Both must be accomplished using JavaScript.

Larry

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

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



RE: RE: [PHP] User Screen Resolution

2004-10-27 Thread Vail, Warren
One aspect of this list that I really enjoy is finding out that everyone but
me is on vacation or out of the office. 

8-b

Warren Vail


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 27, 2004 4:22 PM
To: Vail, Warren
Subject: Re: RE: [PHP] User Screen Resolution


Phil Ewington will be out of the office until 1st November.

If your enquiry is urgent please email Ian Lowe ([EMAIL PROTECTED]).

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



Re: [PHP] User Screen Resolution

2004-10-27 Thread Brad Bonkoski
There has been talk in the past about making a phpscript that would run on 
the client, but then there are all the problems with browser integration, 
and universal support.  I say this is a good niche for javascript, so make 
use of it if you need it just like you don't use a hammer to tighten a 
screw...

- Original Message - 
From: Vail, Warren [EMAIL PROTECTED]
To: 'Larry E. Ullman' [EMAIL PROTECTED]; Web Guy 
[EMAIL PROTECTED]
Cc: PHP [EMAIL PROTECTED]
Sent: Wednesday, October 27, 2004 7:05 PM
Subject: RE: [PHP] User Screen Resolution


This is because there is no way for PHP to run in the browser.  Wouldn't 
it
be nice to have a plug-in that allowed PHP to run there, perhaps as a
JavaScript replacement?  Guess it would have to be a throttled back 
version
of PHP to adhere to sandbox security concerns.  Sigh

Warren Vail
-Original Message-
From: Larry E. Ullman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 27, 2004 3:40 PM
To: Web Guy
Cc: PHP
Subject: Re: [PHP] User Screen Resolution

I am new to PHP and couldn't find any Globals for the User's Screen
Resolution. (don't laugh at me please)
I used to use a Javascript function to pass the resolution using
screen.width and screen.height.
What I am actually trying to do is make a page resize depending on
screen
resolution, in case that helps anyone.
Using PHP you can neither find the screen resolution nor resize the
browser window. Both must be accomplished using JavaScript.
Larry
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] User Screen Resolution

2004-10-27 Thread Vail, Warren
Good point, I suspect much of the desirability of having PHP on the client,
is it seems almost cruel and unusual punishment to have to learn how to use
a screwdriver, after having spent valuable time learning all about a hammer.
I wonder if I would have been so enthusiastic about learning and using PHP
if I had known in the beginning that I'd need to learn JavaScript as well.

Warren Vail

-Original Message-
From: Brad Bonkoski [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 27, 2004 4:33 PM
To: Vail, Warren; 'Larry E. Ullman'; Web Guy
Cc: PHP
Subject: Re: [PHP] User Screen Resolution


There has been talk in the past about making a phpscript that would run on 
the client, but then there are all the problems with browser integration, 
and universal support.  I say this is a good niche for javascript, so make 
use of it if you need it just like you don't use a hammer to tighten a 
screw...

- Original Message - 
From: Vail, Warren [EMAIL PROTECTED]
To: 'Larry E. Ullman' [EMAIL PROTECTED]; Web Guy 
[EMAIL PROTECTED]
Cc: PHP [EMAIL PROTECTED]
Sent: Wednesday, October 27, 2004 7:05 PM
Subject: RE: [PHP] User Screen Resolution


 This is because there is no way for PHP to run in the browser.  
 Wouldn't
 it
 be nice to have a plug-in that allowed PHP to run there, perhaps as a
 JavaScript replacement?  Guess it would have to be a throttled back 
 version
 of PHP to adhere to sandbox security concerns.  Sigh

 Warren Vail


 -Original Message-
 From: Larry E. Ullman [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, October 27, 2004 3:40 PM
 To: Web Guy
 Cc: PHP
 Subject: Re: [PHP] User Screen Resolution


 I am new to PHP and couldn't find any Globals for the User's Screen 
 Resolution. (don't laugh at me please)

 I used to use a Javascript function to pass the resolution using 
 screen.width and screen.height.

 What I am actually trying to do is make a page resize depending on 
 screen resolution, in case that helps anyone.

 Using PHP you can neither find the screen resolution nor resize the 
 browser window. Both must be accomplished using JavaScript.

 Larry

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

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

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