Aquesta pàgina forma part de la documentació de Moodle en català, tot i que no ha estat traduïda encara. Podeu contribuir obertament a les tasques de traducció. Podeu consultar la Guia d'edició de la documentació i també participar ens els debats del fòrum de traductors de la documentació a moodle.org

PHP info: diferència entre les revisions

De MoodleDocs
Salta a:navegació, cerca
Cap resum de modificació
(content moved to PHP and page redirected)
 
(4 revisions intermèdies per 2 usuaris que no es mostren)
Línia 1: Línia 1:
Location: ''Administration > Server > PHP info''
#redirect [[PHP]]
 
The phpinfo display contains information about the configuration of your PHP installation. This is useful for checking:
* that your PHP installation meets Moodle's system requirements.
* the values that are currently applied to your server's PHP install, e.g. File upload limits
* that you have installed the required modules needed for Moodle to work, e.g. the LDAP module for LDAP authentication.
 
==Table of contents==
__TOC__
 
== Displaying phpinfo in Moodle==
 
To view the phpinfo information:
* In Moodle version 1.7 or greater, choose 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:
 
<code php>
<?php phpinfo(); ?>
</code>
 
* 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 <nowiki>http://<server-name>/info.php</nowiki>.
 
==Sample output==
This is a sample output displayed.
 
 
<table border="0" cellpadding="3" width="600">
<tr class="h"><td>
[http://www.php.net/ http://www.php.net]
 
<nowiki>=PHP Version 4.3.3= </nowiki>
</td></tr>
</table><br/>
<table border="0" cellpadding="3" width="600">
<tr><td class="e">System </td><td class="v">Windows NT MYLAPTOP0106 5.1 build 2600 </td></tr>
<tr><td class="e">Build Date </td><td class="v">Aug 24 2003 22:01:16 </td></tr>
<tr><td class="e">Server API </td><td class="v">Apache </td></tr>
<tr><td class="e">Virtual Directory Support </td><td class="v">enabled </td></tr>
<tr><td class="e">Configuration File (php.ini) Path </td><td class="v">C:\WINDOWS\php.ini </td></tr>
<tr><td class="e">PHP API </td><td>20020918 </td></tr>
<tr><td class="e">PHP Extension </td><td>20020429 </td></tr>
<tr><td class="e">Zend Extension </td><td>20021010 </td></tr>
<tr><td class="e">Debug Build </td><td>no </td></tr>
<tr><td class="e">Thread Safety </td><td>enabled </td></tr>
<tr><td class="e">Registered PHP Streams </td><td>php, http, ftp, compress.zlib</td></tr>
</table>
 
...
 
This output goes on for about 5 pages.
 
==See also==
* [http://www.php.net/ini.core PHP reference] describing the core PHP.INI directives
* [[PHP FAQ]]
 
[[es:phpinfo]]
[[fr:phpinfo]]
[[pt:phpinfo]]
[[pl:phpinfo]]
[[ja:phpinfo]]
 
[[Category:Developer|Phpinfo]]
[[Category:Administrator]]

Revisió de 11:15, 15 gen 2013

Redirigeix a: