PHP Classes

File: examples/example.php

Recommend this page to a friend!
  Classes of Eric Jumba   PHPInfo Guard   examples/example.php   Download  
File: examples/example.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHPInfo Guard
Protected replacement for the phpinfo() function
Author: By
Last change:
Date: 20 days ago
Size: 210 bytes
 

Contents

Class file image Download
<?php
use PhpInfoGuard\PhpInfoGuard;

PhpInfoGuard::enable();
PhpInfoGuard::guardedPhpInfo(); // Executes phpinfo()

PhpInfoGuard::disable();
PhpInfoGuard::guardedPhpInfo(); // Outputs "phpinfo() is disabled."