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? Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.