PHP/Development/Server Info

Материал из Web эксперт
Перейти к: навигация, поиск

Get Server address

<?
$address = getenv("REMOTE_ADDR");
echo $address
?>



Remote host

<?php
  echo "<PRE>";
  echo "<BR><B>Remote Host   :</B> $REMOTE_HOST";
  echo "</PRE>";
?>



Remote port

<?php
  echo "<PRE>";
  echo "<BR><B>Remote Port   :</B> $REMOTE_PORT";
  echo "</PRE>";
?>