Table of Contents

Getting information on your PHP build

This is an easy way to see what services Gandi has enabled on your Gandi AI PHP package.

You can see all of the information on your PHP build (installed modules, etc) by uploading the following php file to your web server. It does not matter where you put it on your server, as long as it is in a working virtual host directory (in one of your websites).

Step 1. Create the file.

Note:

Do not use Microsoft Word to create your code. Be sure to use a plain text editor to avoid any unwelcome surprises. This is to assure that your word processor does not add additional elements. Some recommended editors are TextEdit on Mac, Kate on Linux, and NotePad on Windows.

Copy and paste the code below into a plain text editor, and save it on your computer as a file called phpinfo.php

<?php
phpinfo();
?>

2. Upload the file

Upload the file you just created to your server. Make sure that you put it in a working website directory. If you are unsure how to do this, you can refer to this page in our wiki.

3. Open the page

In your web browser, run the program by typing the full address of where you put it. For example:

http://www.example.com/phpinfo.php

You will immediately see a detailed page that shows you all of the information on the current build of your PHP, such as the example below:

phpinfo.jpg

For more on the phpinfo function, see: http://www.php.net/phpinfo