<? $width = "<script>document.write(screen.width); </script>"; if ($width < 1000) { exit; } ?>
Dość prosty i chyba bez błędów, ale dziwne jest to, że nawte kiedy $width jest większe niż 1000 - przerzuca mnie na mobile...
<? $width = "<script>document.write(screen.width); </script>"; if ($width < 1000) { exit; } ?>
$width = "<script>document.write(screen.width); </script>"; if ($width < 1000) { // .... }
if ("<script>document.write(screen.width); </script>" < 1000) { // .... }
$width = "<script>document.write(screen.width); </script>";
$width = 'ala ma kota';
if ($width < 1000)