PHP Classes

How to Implement PHPInfo Test Page Protect with a Password Using the Package Protected PHPInfo: Show PHPInfo function output on a protected page

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-06-10 (3 months ago) RSS 2.0 feedNot enough user ratingsTotal: 36 This week: 1All time: 10,980 This week: 39Up
Version License PHP version Categories
protectedphpinfo 1.0.0Custom (specified...5PHP 5, Language, Applications, Global
Description 

Author

This package can show PHPInfo function output on a protected page.

It provides a Web page script that presents a form to ask the user for a username and password.

The same script can check if the username and password match the credentials stored in a password file in the JSON format.

If the username and password are valid, the script shows the output of the PHP phpinfo function.

Innovation Award
PHP Programming Innovation award nominee
June 2024
Number 6
phpinfo() is a PHP function that can show several types of information related to the current environment in which PHP is running.

This function can be used to present information on a Web page.

Since the information presented by the phpinfo() function is sensitive, it is not recommended to have pages that can display that information.

This package provides a Web page script that implements a protected version of the phpinfo() function using a form that requests a username and password to access the phpinfo() function output.

Manuel Lemos
Picture of Faris AL-Otabi
  Performance   Level  
Name: Faris AL-Otabi <contact>
Classes: 16 packages by
Country: Saudi Arabia Saudi Arabia
Age: 27
All time rank: 276110 in Saudi Arabia Saudi Arabia
Week rank: 10 Up1 in Saudi Arabia Saudi Arabia Up
Innovation award
Innovation award
Nominee: 5x

Winner: 1x

Recommendations

protect the phpinfo() command
add a password to run the phpinfo() function

Documentation

ProtectedPHPInfo

PHP Info with Password Protection

Features

  1. User management through JSON File
  2. Password Hashed for each user
  3. Secure Login Page

Default User

  1. Username: admin
  2. Password: admin

How to add a new user


{
  "users": [
    ...
    {
      "id": 2,
      "username": "admin",
      "password": password_hash("admin")
    }
  ]
}

Screenshot

image

License

MIT


  Files folder image Files (5)  
File Role Description
Accessible without login Plain text file .htaccess Data Auxiliary data
Accessible without login Plain text file info.php Aux. Auxiliary script
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file users.json Data Auxiliary data

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:36
This week:1
All time:10,980
This week:39Up