<TABLE cellpadding=5> <th>キー</th><th>値</th> <? foreach ( $_SERVER as $Key => $Value ) { ?> <tr> <td><?=$Key?></td> <td><?=$Value?></td> </tr> <? } ?> </TABLE>
<? print "<TABLE cellpadding=5>"; print "<th>キー</th><th>値</th>"; foreach ( $_SERVER as $Key => $Value ) { print "<tr>"; print "<td>$Key</td><td>$Value</td>"; print "</tr>"; } print "</table>"; ?>
<? if ( $_SERVER["REQUEST_METHOD"] == "GET" ) { print "今はリンクから呼び出されています"; } ?>