PHPINFO: Difference between revisions

From NikkiWiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
Resources for configuring Personal Homepage Hypertext Preprocessor Info (PHPINFO).
Resources for configuring Personal Homepage Hypertext Preprocessor Info (PHPINFO).


* [[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?)"]]
* [https://help.dreamhost.com/hc/articles/214895287/ <cite>DreamHost Knowledge Base</cite>: "Viewing Your Site’s PHP Version and Settings"]
* [https://help.dreamhost.com/hc/articles/214895287/ <cite>DreamHost Knowledge Base</cite>: "Viewing Your Site’s PHP Version and Settings"]
* [https://www.php.net/manual/function.phpinfo.php <cite>PHP</cite>: "PHPINFO"]
* [https://www.php.net/manual/function.phpinfo.php <cite>PHP</cite>: "PHPINFO"]
== security ==
Do not publicly expose the raw output of "<code>phpinfo</code>" and especially do not publicly expose the raw output of "<code>INFO_VARIABLES</code>".&ensp; 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 <cite>Nicole Sharp’s Website</cite> ==
== PHPINFO for <cite>Nicole Sharp’s Website</cite> ==
This is for internal use only and is not a public PHP page.


<syntaxhighlight lang="php">
<syntaxhighlight lang="php">
Line 24: Line 31:
Content in this file is available under the Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 International Public License.
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/
https://www.creativecommons.org/licenses/by-sa/4.0/
This page uses PHP software, freely available from "http://www.php.net/software/".
This page uses PHP software, freely available from "https://www.php.net/software/".
*/
*/



Revision as of 2026-04-09T17:11:06

Resources for configuring Personal Homepage Hypertext Preprocessor Info (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 page uses PHP software, freely available from "https://www.php.net/software/".
*/

?>