The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
Cheers
> What phil said is correct. PHP is server-side so it cannot directly
> access client-side information such as screen-resolution. Some
> information is passed to the server, such as IP address and referring
> URI, but not screen-res. You need a client-side script such as
> JavaScript.
The only Server Side scripting I know of that can do this is JSP. Your only option is to use javascript or vbscript.
One question, are you trying to get the "monitor" resolution or "what the browser is doing" size?
This is something that couldn't be done with PHP alone I'm afraid, unless screen resolutions are passed through when the browser makes a page request, which I'm prety sure it doesn't.
Javascript can detect stuff off of the browser and (eg) provide a real time clock from your PC, PHP can only print the time of the clock off of the server if you see what I mean...
You'll need something browser based to determine it, or maybe a mixture of PHP and Javascript.
Cheers