What is my IP? - Script Solutions for Apache and IIS

AMBROSIA60-Portal  Fidonet Hauptseite




Apache/Perl
 

use environment variable
 

$ENV{REMOTE_ADDR}
 

Check IP with PERL
 

Apache/PHP
 

use environment variable
 
<?PHP
  if (!empty($_SERVER)) {
    echo $_SERVER['REMOTE_ADDR'];
  } else {
    echo getenv('REMOTE_ADDR');
  }
?>
Check IP with PHP

Microsoft IIS/ASP
 

use server variable
 

<% = request.servervariables("REMOTE_HOST") %>
 

Check IP with ASP
 


© 2003-2024 by Ulrich Schroeter   01088