Difference between revisions of "Displaying php information"
From MyWiki
(Created page with "'''Displaying phpinfo in Moodle'''<br> An administrator can find PHP info in Settings > Site administration > Server > PHP info.<br><br> '''Displaying phpinfo outside of Moodl...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
Create a file called info.php using your text editor, containing this single line:<br> | Create a file called info.php using your text editor, containing this single line:<br> | ||
− | <?php phpinfo(); ?> | + | <source lang="php"> |
+ | <?php | ||
+ | // Show all information, defaults to INFO_ALL | ||
+ | phpinfo(); | ||
+ | ?> | ||
+ | </source> | ||
− | + | Save this file as info.php<br> | |
− | + | Upload this file into the root web accessible folder on your server.<br> | |
− | + | Now open this file in your browser. For example http://<server-name>/info.php<br> |
Latest revision as of 12:23, 22 August 2017
Displaying phpinfo in Moodle
An administrator can find PHP info in Settings > Site administration > Server > PHP info.
Displaying phpinfo outside of Moodle
To view the phpinfo information:
Create a file called info.php using your text editor, containing this single line:
<?php // Show all information, defaults to INFO_ALL phpinfo(); ?>
Save this file as info.php
Upload this file into the root web accessible folder on your server.
Now open this file in your browser. For example http://<server-name>/info.php