# phpinfo

This step is optional, but can easily save you hours of frustration.

As a pre-install test of the hosting system, a very small, but useful PHP script is created locally, and uploaded to the target system.

The PHP script is only one line:

```php
<?php phpinfo();
```

Using a text editor, create a file named *info.php* with this one line.

Next, upload this file to your web root.

![Filezilla info.php Upload](https://1723894392-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L_EjUvXXbOiEMe2qFIc%2F-L_EkOTndUbjmkcnpXxm%2F-L_EkQFcuvQwiCaJ9n_A%2Ffilezilla-01-info.png?generation=1551821291943923\&alt=media)

Access your script by opening it in your browser, i.e. accessing `http://example.com/info.php`. If everything is working correctly, you should see a page something like this:

![phpinfo() Example](https://1723894392-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L_EjUvXXbOiEMe2qFIc%2F-M0BjT4zPv747av8zUyR%2F-L_EkQFekRIua_XTegx7%2Fphp-info.png?generation=1581835479601474\&alt=media)

Note: some hosting services may disable the *phpinfo()* function as a security measure. You usually will receive a message to that effect, if that is the case.

The output of the script might come in handy for troubleshooting, so consider saving a copy of it.

If the test works, you should be good to go for the install. You should delete the *info.php* script, and proceed with the install.

If the test fails, investigate why! Whatever issue is preventing this simple test from working **will** prevent a real install from working.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://xoops.gitbook.io/xoops-install-upgrade/installation/preparations/phpinfo.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
