master82 Posted September 26, 2006 Share Posted September 26, 2006 Is it possible to use php to detect a users screen size (eg 800 x 600) and then use that in an IF statement to adjust an output.egif([screen size] == 800x600){do this}else{do something else}Is it at all possible? Link to comment https://forums.phpfreaks.com/topic/22102-detecting-screen-size/ Share on other sites More sharing options...
trq Posted September 26, 2006 Share Posted September 26, 2006 Nope. Php runs on the server, doesn't even know what a screen is. Youd need to do this client side with javascript or something. Link to comment https://forums.phpfreaks.com/topic/22102-detecting-screen-size/#findComment-98908 Share on other sites More sharing options...
obsidian Posted September 26, 2006 Share Posted September 26, 2006 [quote author=thorpe link=topic=109544.msg441667#msg441667 date=1159279813]Nope. Php runs on the server, doesn't even know what a screen is. Youd need to do this client side with javascript or something.[/quote]right... you could, however do this with javascript and redirect to the appropriate PHP page. Link to comment https://forums.phpfreaks.com/topic/22102-detecting-screen-size/#findComment-98911 Share on other sites More sharing options...
master82 Posted September 26, 2006 Author Share Posted September 26, 2006 Ok thanks for the feedback - wasn't important anyway - just looking to expand my php knowledge Link to comment https://forums.phpfreaks.com/topic/22102-detecting-screen-size/#findComment-98915 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.