Como faço para criar uma página de informações em PHP?

< 1 min. de leitura

A PHP Info Page is a simple way to check your server’s PHP configuration, installed extensions, and settings. It’s useful for troubleshooting, debugging, or confirming that your website meets the requirements of a PHP application.

Steps to create a PHP Info Page #

  1. Create a new PHP file
    • Open a text editor (like Notepad or VS Code).
    • Create a new file and name it something like phpinfo.php.
  2. Add the PHP info code
    • Paste the following code into your file:
    <?php phpinfo(); ?>

  1. Upload the file to your website
    • Faça login em sua conta de hospedagem em my.disoh.com.
    • Uso File Manager in cPanel/DirectAdmin or an FTP client to upload phpinfo.php to the root of your website (usually public_html).
  2. View your PHP Info Page
    • Open your browser and go to https://yourdomain.com/phpinfo.php.
    • You will see a full page with information about your PHP version, loaded extensions, server settings, and more.

Observações importantes #

  • Security tip: After checking your PHP info, delete the file or move it outside the public folder. Leaving it online can expose sensitive server information.
  • This page is read-only, so it won’t affect your website.
Quais são seus sentimentos?
Dica: cole uma lista - nós a processaremos na página de resultados.