PHP Classes

File: example_standalone_with_login.php

Recommend this page to a friend!
  Classes of Thomas Trautner   Better PHPinfo   example_standalone_with_login.php   Download  
File: example_standalone_with_login.php
Role: Example script
Content type: text/plain
Description: Standalone with login
Class: Better PHPinfo
Get information about the current PHP request
Author: By
Last change:
Date: 1 month ago
Size: 625 bytes
 

Contents

Class file image Download
<?php
/**
 * Example: Standalone PHP Info Display with Authentication
 *
 * This example shows how to use the BetterPhpInfo class with
 * username and password protection. Users must authenticate
 * before seeing the PHP information.
 *
 * Configure your desired username and password below.
 */

// Include the BetterPhpInfo class
require_once 'BetterPhpInfo.php';

// Configure authentication credentials
$requiredUsername = 'admin';
$requiredPassword = 'secure123';

// Create instance and render with authentication
$betterPhpInfo = new BetterPhpInfo();
$betterPhpInfo->render($requiredUsername, $requiredPassword);
?>