Crée un fichier:
nom: exemple = root.php
contenu:
<HTML>
<HEAD>
<TITLE>Informations sur votre config.</TITLE>
</HEAD>
<BODY>
<DIV ALIGN="center"><FONT FACE="Verdana" SIZE=4 COLOR="#0000FF"> informations sur le serveur qui vous héberge !</FONT><BR><FONT COLOR="#FF3300"><B>VERSION PHP4</B></FONT></DIV><BR>
<TABLE WIDTH=80% BORDER=1>
<COL WIDTH=194>
<COL WIDTH=425>
<TR>
<TD><FONT FACE="Verdana" SIZE=2>$PHP_SELF</FONT></TD>
<TD bgcolor="#00CCFF"><FONT FACE="Courier" SIZE=2 color="#0000CC"><b><? print $PHP_SELF; ?></FONT></b></TD>
</TR>
<TR>
<TD><FONT FACE="Verdana" SIZE=2>$DOCUMENT_ROOT</FONT></TD>
<TD bgcolor="#00CCFF"><FONT FACE="Courier" SIZE=2 color="#0000CC"><b><? print $DOCUMENT_ROOT; ?></FONT></b></TD>
</TR>
<TR>
<TD><FONT FACE="Verdana" SIZE=2>$HTTP_ACCEPT</FONT></TD>
<TD bgcolor="#00CCFF"><FONT FACE="Courier" SIZE=2 color="#0000CC"><b><? print $HTTP_ACCEPT; ?></FONT></b></TD>
</TR>
<TR>
<TD><FONT FACE="Verdana" SIZE=2>$HTTP_ACCEPT_ENCODING</FONT></TD>
<TD bgcolor="#00CCFF"><FONT FACE="Courier" SIZE=2 color="#0000CC"><b><? print $HTTP_ACCEPT_ENCODING; ?></FONT></b></TD>
</TR>
<TR>
<TD><FONT FACE="Verdana" SIZE=2>$HTTP_ACCEPT_LANGUAGE</FONT></TD>
<TD bgcolor="#00CCFF"><FONT FACE="Courier" SIZE=2 color="#0000CC"><b><? print $HTTP_ACCEPT_LANGUAGE; ?></FONT></b></TD>
</TR>
<TR>
<TD><FONT FACE="Verdana" SIZE=2>$HTTP_CONNECTION</FONT></TD>
<TD bgcolor="#00CCFF"><FONT FACE="Courier" SIZE=2 color="#0000CC"><b><? print $HTTP_CONNECTION; ?></FONT></b></TD>
</TR>
<TR>
<TD><FONT FACE="Verdana" SIZE=2>$HTTP_USER_AGENT</FONT></TD>
<TD bgcolor="#00CCFF"><FONT FACE="Courier" SIZE=2 color="#0000CC"><b><? print $HTTP_USER_AGENT; ?></FONT></b></TD>
</TR>
<TR>
<TD><FONT FACE="Verdana" SIZE=2>$PATH</FONT></TD>
<TD bgcolor="#00CCFF"><FONT FACE="Courier" SIZE=2 color="#0000CC"><b><? print $PATH; ?></FONT></b></TD>
</TR>
<TR>
<TD><FONT FACE="Verdana" SIZE=2>$REMOTE_ADDR</FONT></TD>
<TD bgcolor="#00CCFF"><FONT FACE="Courier" SIZE=2 color="#0000CC"><b><? print $REMOTE_ADDR; ?></FONT></b></TD>
</TR>
<TR>
<TD><FONT FACE="Verdana" SIZE=2>$REMOTE_PORT</FONT></TD>
<TD bgcolor="#00CCFF"><FONT FACE="Courier" SIZE=2 color="#0000CC"><b><? print $REMOTE_PORT; ?></FONT></b></TD>
</TR>
<TR>
<TD><FONT FACE="Verdana" SIZE=2>$SCRIPT_FILENAME</FONT></TD>
<TD bgcolor="#00CCFF"><FONT FACE="Courier" SIZE=2 color="#0000CC"><b><? print $SCRIPT_FILENAME; ?></FONT></b></TD>
</TR>
<TR>
<TD><FONT FACE="Verdana" SIZE=2>$SCRIPT_URI</FONT></TD>
<TD bgcolor="#00CCFF"><FONT FACE="Courier" SIZE=2 color="#0000CC"><b><? print $SCRIPT_URI; ?></FONT></b></TD>
</TR>
<TR>
<TD><FONT FACE="Verdana" SIZE=2>$SCRIPT_URL</FONT></TD>
<TD bgcolor="#00CCFF"><FONT FACE="Courier" SIZE=2 color="#0000CC"><b><? print $SCRIPT_URL; ?></FONT></b></TD>
</TR>
<TR>
<TD><FONT FACE="Verdana" SIZE=2>$HTTP_SERVER_VARS</FONT></TD>
<TD bgcolor="#00CCFF"><FONT FACE="Courier" SIZE=2 color="#0000CC"><b><? print $HTTP_SERVER_VARS; ?></FONT></b></TD>
</TR>
<TR>
<TD><FONT FACE="Verdana" SIZE=2>$SERVER_ADMIN</FONT></TD>
<TD bgcolor="#00CCFF"><FONT FACE="Courier" SIZE=2 color="#0000CC"><b><? print $SERVER_AMIN; ?></FONT></b></TD>
</TR>
<TR>
<TD><FONT FACE="Verdana" SIZE=2>$SERVER_ADDR</FONT></TD>
<TD bgcolor="#00CCFF"><FONT FACE="Courier" SIZE=2 color="#0000CC"><b><? print $SERVER_ADDR; ?></FONT></b></TD>
</TR>
<TR>
<TD><FONT FACE="Verdana" SIZE=2>$SERVER_PORT</FONT></TD>
<TD bgcolor="#00CCFF"><FONT FACE="Courier" SIZE=2 color="#0000CC"><b><? print $SERVER_PORT; ?></FONT></b></TD>
</TR>
<TR>
<TD><FONT FACE="Verdana" SIZE=2>$SERVER_NAME</FONT></TD>
<TD bgcolor="#00CCFF"><FONT FACE="Courier" SIZE=2 color="#0000CC"><b><? print $SERVER_NAME; ?></FONT></b></TD>
</TR>
<TR>
<TD><FONT FACE="Verdana" SIZE=2>$SERVER_SIGNATURE</FONT></TD>
<TD bgcolor="#00CCFF"><FONT FACE="Courier" SIZE=2 color="#0000CC"><b><? print $SERVER_SIGNATURE; ?></FONT></b></TD>
</TR>
<TR>
<TD><FONT FACE="Verdana" SIZE=2>$SERVER_SOFTWARE</FONT></TD>
<TD bgcolor="#00CCFF"><FONT FACE="Courier" SIZE=2 color="#0000CC"><b><? print $SERVER_SOFTWARE; ?></FONT></b></TD>
</TR>
<TR>
<TD><FONT FACE="Verdana" SIZE=2>$GATEWAY_INTERFACE</FONT></TD>
<TD bgcolor="#00CCFF"><FONT FACE="Courier" SIZE=2 color="#0000CC"><b><? print $GATEWAY_INTERFACE; ?></FONT></b></TD>
</TR>
<TR>
<TD><FONT FACE="Verdana" SIZE=2>$SERVER_PROTOCOL</FONT></TD>
<TD bgcolor="#00CCFF"><FONT FACE="Courier" SIZE=2 color="#0000CC"><b><? print $SERVER_PROTOCOL; ?></FONT></b></TD>
</TR>
<TR>
<TD><FONT FACE="Verdana" SIZE=2>$REQUEST_METHOD</FONT></TD>
<TD bgcolor="#00CCFF"><FONT FACE="Courier" SIZE=2 color="#0000CC"><b><? print $REQUEST_METHOD; ?></FONT></b></TD>
</TR>
<TR>
<TD><FONT FACE="Verdana" SIZE=2>$QUERY_STRING</FONT></TD>
<TD bgcolor="#00CCFF"><FONT FACE="Courier" SIZE=2 color="#0000CC"><b><? print $QUERY_STRING; ?></FONT></b></TD>
</TR>
<TR>
<TD><FONT FACE="Verdana" SIZE=2>$REQUEST_URI</FONT></TD>
<TD bgcolor="#00CCFF"><FONT FACE="Courier" SIZE=2 color="#0000CC"><b><? print $REQUEST_URI; ?></FONT></b></TD>
</TR>
<TR>
<TD><FONT FACE="Verdana" SIZE=2>$SCRIPT_NAME</FONT></TD>
<TD bgcolor="#00CCFF"><FONT FACE="Courier" SIZE=2 color="#0000CC"><b><? print $SCRIPT_NAME; ?></FONT></b></TD>
</TR>
<TR>
<TD><FONT FACE="Verdana" SIZE=2>$TZ</FONT></TD>
<TD bgcolor="#00CCFF"><FONT FACE="Courier" SIZE=2 color="#0000CC"><b><? print $TZ; ?></FONT></b></TD>
</TR>
<TR>
<TD><FONT FACE="Verdana" SIZE=2>$COMSPEC</FONT></TD>
<TD bgcolor="#00CCFF"><FONT FACE="Courier" SIZE=2 color="#0000CC"><b><? print $COMSPEC; ?></FONT></b></TD>
</TR>
<TR>
<TD><FONT FACE="Verdana" SIZE=2>$REDIRECT_STATUS</FONT></TD>
<TD bgcolor="#00CCFF"><FONT FACE="Courier" SIZE=2 color="#0000CC"><b><? print $REDIRECT_STATUS; ?></FONT></b></TD>
</TR>
<TR>
<TD><FONT FACE="Verdana" SIZE=2>$REDIRECT_URL</FONT></TD>
<TD bgcolor="#00CCFF"><FONT FACE="Courier" SIZE=2 color="#0000CC"><b><? print $REDIRECT_URL; ?></FONT></b></TD>
</TR>
<TR>
<TD><FONT FACE="Verdana" SIZE=2>$WINDIR</FONT></TD>
<TD bgcolor="#00CCFF"><FONT FACE="Courier" SIZE=2 color="#0000CC"><b><? print $WINDIR; ?></FONT></b></TD>
</TR>
<TR>
<TD><FONT FACE="Verdana" SIZE=2><img src="votrescript.php?=PHPE9568F35-D428-11d2-A769-00AA001ACF42"></FONT></TD>
<TD bgcolor="#00CCFF"><FONT FACE="Courier" SIZE=2 color="#0000CC"><b><img src="index.php?=PHPE9568F35-D428-11d2-A769-00AA001ACF42"></FONT></b></TD>
</TR>
<TR>
<TD><FONT FACE="Verdana" SIZE=2><img src="votrescript.php?=PHPE9568F34-D428-11d2-A769-00AA001ACF42"></FONT></TD>
<TD bgcolor="#00CCFF"><FONT FACE="Courier" SIZE=2 color="#0000CC"><b><img src="index.php?=PHPE9568F34-D428-11d2-A769-00AA001ACF42"></FONT></b></TD>
</TR>
</TABLE>
<br><br><br><br><br>
<?phpinfo();?>
</BODY>
</HTML>
le placer dans le répertoire
où se trouve l' index.php de votre site.
il suffit de l'appeller par:
http://www.votresite.com/root.php
Message édité par : GiamDoc