I have 2 page
index.php (For Desktop)
and
indexm.php (For Mobile)
I want to redirect it with detection of screen resolution size.
I'm trying this code
<?php
if (screen.width <= 720) {
include "indexm.php";
} else {
include "index.php";
}
?>
But both the code is not working, Please help me with PHP Code to make it work.
Note : I'm not looking Header Location
header('Location: indexm.php');