Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php stop loading page

<?php
  session_start();    
  if (!isset($_SESSION['id'])) {
    header('location:../');
    exit(); // <-- terminates the current script
  }
// close the php tag and write your HTML :)
?>
<html>
  <body>
    code
    code
    <!-- if you need another php tag somewhere else -->
    <?php if(1 != 2) echo '<em>PHP works :)</em>'; ?>
    code
    code
  </body>
</html>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #stop #loading #page
ADD COMMENT
Topic
Name
5+4 =