PHPINFO: Difference between revisions

From NikkiWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Resources for configuring <strong>Personal Homepage Hypertext Preprocessor Info (PHPINFO)</strong>.
Resources for configuring <strong>Personal Homepage Hypertext Preprocessor Info (PHPINFO)</strong>.
== intro ==


# [[wikibooks:PHP Programming/Setup and Installation#How Do I Know My Setup is Working?|<cite>Wikibooks</cite>: "PHP Programming (Setup and Installation: How Do I Know My Setup Is Working?)"]]
# [[wikibooks:PHP Programming/Setup and Installation#How Do I Know My Setup is Working?|<cite>Wikibooks</cite>: "PHP Programming (Setup and Installation: How Do I Know My Setup Is Working?)"]]
Line 36: Line 38:
?>
?>
</syntaxhighlight>
</syntaxhighlight>
== references ==
# [[wikibooks:PHP|<cite>Wikibooks</cite>: "PHP Programming"]]
# [https://www.php.net/docs.php <cite>PHP</cite>: "Documentation"]


[[category:webdevelopment]]
[[category:webdevelopment]]

Latest revision as of 2026-04-09T22:44:34

Resources for configuring Personal Homepage Hypertext Preprocessor Info (PHPINFO).

intro

  1. Wikibooks: "PHP Programming (Setup and Installation: How Do I Know My Setup Is Working?)"
  2. DreamHost Knowledge Base: "Viewing Your Site’s PHP Version and Settings"
  3. PHP: "PHPINFO"

security

Do not publicly expose the raw output of "phpinfo" and especially do not publicly expose the raw output of "INFO_VARIABLES".  These outputs can include File Transfer Protocol (FTP) user names and Oracle My Structured Query Language (MySQL) database names that you may want to keep secret.

PHPINFO for Nicole Sharp’s Website

This is for internal use only and is not a public PHP page.

<?php

phpinfo(INFO_GENERAL);
phpinfo(INFO_CREDITS);
phpinfo(INFO_CONFIGURATION);
phpinfo(INFO_MODULES);
phpinfo(INFO_ENVIRONMENT);
# phpinfo(INFO_VARIABLES);
phpinfo(INFO_LICENSE);
# https://www.php.net/function.phpinfo.php

/*
Personal Homepage Hypertext Preprocessor Info (PHPINFO) for Nicole Sharp's Website.
Copyright (C) 2026-04-09 Nicole Sharp
https://www.nicolesharp.net/
Content in this file is available under the Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 International Public License.
https://www.creativecommons.org/licenses/by-sa/4.0/
This file uses PHP software, freely available from "https://www.php.net/software/".
*/

?>

references

  1. Wikibooks: "PHP Programming"
  2. PHP: "Documentation"