"how to get user's screen resolution with php " Code Answer

3

You need JavaScript, not PHP.

var screenWidth = window.screen.width,
    screenHeight = window.screen.height;

You can then send it to the server via Ajax (with an XmlHttpRequest).

See also the MDC window.screen docs.

By bv00731542-cc59f6768862 on November 17 2022

Answers related to “how to get user's screen resolution with php ”

Only authorized users can answer the search term. Please sign in first, or register a free account.