Redirecting using screen widht in php

Cerrado
Denunciar
Message postés
1
Date d'inscription
sábado, 23 de agosto de 2014
Estatus
Miembro
Última intervención
sábado, 23 de agosto de 2014
-
Hi, i don't know php programing, but i'm trying to redirect the visitor using this modified code from Mobile_Detect.php.
I added another IF line --> if(screen.width >= 2560){header("Location:ZonasUHD/INTRO.html");} . I don't know if is right or wrong, or i'm missing somethig, Can somebody help me?

This is the index.php doc:
<?php
// Include and instantiate the class.
require_once 'Mobile_Detect.php';
$detect = new Mobile_Detect;
if($detect->isMobile()){header("Location:ZonasMobile/RotarMobile.html");}
if($detect->isTablet()){header("Location:ZonasTablet/RotarTablet.html");}
if(screen.width >= 2560){header("Location:ZonasUHD/INTRO.html");}
header("Location:Zonas/INTRO.html");
?>