PHP Classes

File: public_html/index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of Xavier Pérez  >  PHP Protected Page  >  public_html/index.php  >  Download  
File: public_html/index.php
Role: Example script
Content type: text/plain
Description: Public index example
Class: PHP Protected Page
Block direct access to a page from external links
Author: By
Last change: Upload content
Date: 1 year ago
Size: 357 bytes


Class file image Download
// You must to include protectedPage.php on top of your code
require_once '../protectedPage.php';
<!DOCTYPE html>
        <meta charset="UTF-8">
        <h1>You are granted to access this page</h1>
        <h2><?php echo getProtectedPageAccesUser(); ?></h2>