RE: [PHP] Getting browser resolution??

2003-08-22 Thread Thijs Lensselink
This is done by JavaScript or some other client side programming language.
Remember that php is server side.

-Oorspronkelijk bericht-
Van: Bjarke Andersen [mailto:[EMAIL PROTECTED]
Verzonden: vrijdag 22 augustus 2003 14:48
Aan: [EMAIL PROTECTED]
Onderwerp: [PHP] Getting browser resolution??


Hi

I've just started with PHP and i trying to find a function for getting the
screen resolution, if that i posible??
I need it to resize pictures, so that nomatter what resolution a user haves,
a picture allways uses for example 25% of the width of the screen...

I hope someone can help me!

Thanks
  Bjarke



-- 
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] Getting browser resolution??

2003-08-22 Thread Oli
Use javascript and pass to php:

script language=JavaScript
var SCRwidth  = window.screen.width;
var SCRheight = window.screen.height;
/script

Regards,

Oli

Thijs Lensselink [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 This is done by JavaScript or some other client side programming language.
 Remember that php is server side.

 -Oorspronkelijk bericht-
 Van: Bjarke Andersen [mailto:[EMAIL PROTECTED]
 Verzonden: vrijdag 22 augustus 2003 14:48
 Aan: [EMAIL PROTECTED]
 Onderwerp: [PHP] Getting browser resolution??


 Hi

 I've just started with PHP and i trying to find a function for getting the
 screen resolution, if that i posible??
 I need it to resize pictures, so that nomatter what resolution a user
haves,
 a picture allways uses for example 25% of the width of the screen...

 I hope someone can help me!

 Thanks
   Bjarke



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