How to create phpinfo.php |
Description: This article will show you how to create the phpinfo.php file that is often requested. |
Author: Sphen |
Date: Mon Jun 14, 2004 5:05 pm |
Type: HowTo |
Keywords: phpinfo, php, info |
Category: Miscellanea |
 |
The phpinfo.php file is an important tool for problem analysis in the support forum. However, most people don't know how to do it, so here I will outline how exactly to do it. Note: you should only create this file if so requested by someone from the phpBB support forum, and only if you are having problems, because this file is viewable by anyone.
Step 1. Open your favourite text editor (Notepad, Wordpad, etc) . Note: Please don't use Dreamweaver, it'll just cause problems.
Step 2. Put the following code into the file.
Code: |
<?php
phpinfo();
?>
|
Step 3. Save this file as phpinfo.php Note: Some text editors do not allow you to save text files as php. To get around this, save in any format, then make sure that you have file extension not hidden (Each OS is different, refer to your user manual) and manually change the extension to php.
Step 4. Upload this file to your webserver. Again, the process varies via the program that you use.
Step 5. Run that file in your web browser. Ex. http://www.yourwebsite.com/phpinfo.php
Step 6. After you are done, delete this file from your webspace as it is a security risk to leave it up after tech support is done.*
This page will give you a lot of information that could be important in diagnosing your problems. You will have to post a link to this file on the support forum. Hope this helps.
* Added by Techie-Micheal |
|
|