[PHP] Screen resolution in php
Hi, How can i get the screen resolutin in php. I've read that i can't this. With java i can do this. SCRIPT LANGUAGE=JavaScript document.write(Your Screen Resolution Is : ); document.write(screen.width + x + screen.height); /script My question is how can pass the screen resolution from java to a variable? It is a better way? Any help would be appreciated! Thanks
Re: [PHP] Screen resolution in php
[EMAIL PROTECTED] wrote: Hi, How can i get the screen resolutin in php. I've read that i can't this. With java i can do this. SCRIPT LANGUAGE=JavaScript document.write(Your Screen Resolution Is : ); document.write(screen.width + x + screen.height); /script My question is how can pass the screen resolution from java to a variable? It is a better way? The best you can do is have JavaScript write out the URL and pass the variables that way... document.location ( 'http://www.yoursite.com/whatever.php?width=' + screen.width + 'height=' + screen.height ); On the php page you can access those variables via $_GET Java != JavaScript -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Screen resolution in php
[snip] How can i get the screen resolutin in php. I've read that i can't this. With java i can do this. SCRIPT LANGUAGE=JavaScript document.write(Your Screen Resolution Is : ); document.write(screen.width + x + screen.height); /script My question is how can pass the screen resolution from java to a variable? It is a better way? [/snip] First of all, it is JavaScript...NOT Java.way different. Everyone sing along... JavaScript is client-side, PHP is server-side, You can place the JavaScript values into hidden form fields, And send them back with the tide You'll open a window, get the values and place them into hidden form fields. Then when you ppost that paage back to the server, PHP will have them. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] screen resolution
I am making some pictures for my website in photoshop. Is there anyway I can use php or html to get the screen resolution so that I can load different images accordingly. I know I can just make them all less than 640 pixels wide but then they look to small on most computers. Thanks, Eddie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] screen resolution
PHP runs on the server. It knows nothing about the client. Use Javascript to get information about the client and pass it to your PHP script. -Kevin - Original Message - From: Edward Peloke [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 29, 2002 2:18 PM Subject: [PHP] screen resolution I am making some pictures for my website in photoshop. Is there anyway I can use php or html to get the screen resolution so that I can load different images accordingly. I know I can just make them all less than 640 pixels wide but then they look to small on most computers. Thanks, Eddie -- 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] screen resolution
Try a JavaScript mailing list. - Original Message - From: Edward Peloke [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 29, 2002 2:18 PM Subject: [PHP] screen resolution I am making some pictures for my website in photoshop. Is there anyway I can use php or html to get the screen resolution so that I can load different images accordingly. I know I can just make them all less than 640 pixels wide but then they look to small on most computers. Thanks, Eddie -- 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] Screen resolution
javascript. and no, this isn't a php question :) justin on 25/10/02 2:04 AM, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: Is there any way to have the client browser report what resolution it currently uses? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] screen resolution
Search the archives for the following e-mail : Subject: RE: [PHP3] Checking screen resolution and/or window size Date: Wed, 23 Feb 2000 09:54:05 -0500 From: "Michael Geier" [EMAIL PROTECTED] I think this will cover your questions. -Stathis. Nikola Veber wrote: Hi ! I would like to know if it is possible to determine the screen resolution of the visitor using php ? Thanks Nikola -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Screen Resolution in PHP?
Is there a way to get the client's screen resolution in php? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Screen Resolution in PHP?
Jay Paulson wrote: Is there a way to get the client's screen resolution in php? No. Use JavaScript. -- W | I haven't lost my mind; it's backed up on tape somewhere. + Ashley M. Kirchner mailto:[EMAIL PROTECTED] . 303.442.6410 x130 IT Director / SysAdmin / WebSmith . 800.441.3873 x130 Photo Craft Laboratories, Inc.. 3550 Arapahoe Ave. #6 http://www.pcraft.com . . .. Boulder, CO 80303, U.S.A. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Screen Resolution in PHP?
ACK! Just saw a post that answered this question. Sorry bout this post should have checked with archives first. - Original Message - From: Jay Paulson [EMAIL PROTECTED] To: php list [EMAIL PROTECTED] Sent: Monday, September 24, 2001 10:50 AM Subject: [PHP] Screen Resolution in PHP? Is there a way to get the client's screen resolution in php? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Screen Resolution in PHP?
So sprach »Jay Paulson« am 2001-09-24 um 10:50:02 -0500 : Is there a way to get the client's screen resolution in php? no, because, as you say, it's the client's screen resolution and PHP runs on the server. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 1 day 6 hours 11 minutes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]