when the link http://127.0.0.1:8080/example.php?id=38 will be executed I can't see the content of this page php... chrome will download this file !!
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>test</title>
<script src="public/jquery-1.11.2.min.js" type="text/javascript"></script>
</head>
<body>
<?php
// check the input
//is_numeric($_GET['id']) or die("invalid URL");
?>
</body>
<script type="text/javascript">
console.log(<?php $_GET['id'] ?>);
</script>
</html>