This is not working,
<?php 
if(!isset($_GET['id'])){
    header('location: index.php');
}
$id = $_GET['id'];
if(!is_int($id)){
    header('location: index.php');
    }
 ?>
It's always redirecting me although the url is http://localhost/JMToday/classes/images.php?id=53
 
     
     
     
    