Skip to content
ONDI

← All terms

Settings

phpinfo file

Japanese phpinfo()

A check file that shows the PHP version and server settings on screen. Anyone can view it, so delete it right after checking.

A phpinfo file is a tiny file containing just one line: a call to PHP's built-in phpinfo command. Put it on the server and open it in a browser, and a long table appears showing the PHP version, which features are switched on, where folders sit on the server and other settings. It is like opening a car's bonnet and showing everyone the engine. People use it when the PHP version is hard to find in the hosting control panel, and some providers, such as Gabia in Korea, explain this method.

Watch out Anyone who knows the address can see this page. For an attacker it is a map for finding weak spots, because it reveals the version and settings as they are. Delete the file as soon as you have checked, then open the same address again to make sure the page no longer appears. Files with common names like info.php are often forgotten and left behind, so also look for any you may have uploaded in the past. If you only want to check the version, looking in the hosting control panel first is the safer route.

Source: PHP Manual, “phpinfo” · OWASP, “PHP Configuration Cheat Sheet” (checked 2026-10-26)

See also

A typo here, a clumsy button there.

This site is still being polished. Spot something? Tell us — we’ll fix it and send a small thank-you gift.

🎁 Thank-you gift