Difference between revisions of "Phpinfo"

From Sydapedia
Jump to navigationJump to search
m
m (Undo revision 3427 by Tyop (Talk))
 
Line 5: Line 5:
 
# Open Notepad
 
# Open Notepad
 
# Paste this code into it:
 
# Paste this code into it:
<pre>
+
<pre>
&lt;?php
+
<?php
 
phpinfo();
 
phpinfo();
 
phpinfo(INFO_MODULES);
 
phpinfo(INFO_MODULES);
?&gt;
+
?>
&lt;/pre&gt;
+
</pre>
 
# Save the file as phpinfo.php (it doesn't matter as long as it ends in .php.  NO SPACES, simplicity is a good thing with this.
 
# Save the file as phpinfo.php (it doesn't matter as long as it ends in .php.  NO SPACES, simplicity is a good thing with this.
 
# Upload the .php file to your web server (It probably won't matter where.  It could, but if you are not familiar with this, there is no way you would know about that).
 
# Upload the .php file to your web server (It probably won't matter where.  It could, but if you are not familiar with this, there is no way you would know about that).
 
# Open your web browser and navigate to the .php page
 
# Open your web browser and navigate to the .php page

Latest revision as of 10:01, 4 July 2008

The function phpinfo() is used in php to display the details of how PHP has been setup on a server.

If you want to just see the details of this file and are not interested in learning anything else about PHP here is the easy way to accomplish this.

  1. Open Notepad
  2. Paste this code into it:
<?php
	phpinfo();
	phpinfo(INFO_MODULES);
?>
  1. Save the file as phpinfo.php (it doesn't matter as long as it ends in .php. NO SPACES, simplicity is a good thing with this.
  2. Upload the .php file to your web server (It probably won't matter where. It could, but if you are not familiar with this, there is no way you would know about that).
  3. Open your web browser and navigate to the .php page