ServerIP
S.Goertz
- php
0 Linksetzer0 pierre
0 Alois
Hi,
ist es möglich, mit PHP die IP des Servers (also nicht die vom Besucher) herauszubekommen? wenn ja, wie?
Gruß
S.Goertz
ist es möglich, mit PHP die IP des Servers (also nicht die vom Besucher) herauszubekommen? wenn ja, wie?
ist es möglich, mit PHP die IP des Servers (also nicht die vom Besucher) herauszubekommen? wenn ja, wie?
du kannst auch im ms-dos fenster deine domain anpingen mit dem befehl
ping www.deinedomain.de
gruß pierre
Hi,
ist es möglich, mit PHP die IP des Servers (also nicht die vom Besucher) herauszubekommen? wenn ja, wie?
Gruß
S.Goertz
Hallo
wie wärs hiermit:
<? ob_start(); phpinfo();
$Ausgabe .= ob_get_contents();
ob_end_clean();
preg_match_all("=<body[^>]*>(.*)</body>=siU", $Ausgabe, $a);
$Ergebnis = $a[1][0];
$Ergebnis = str_replace( '9999cc','EDF9CA', $Ergebnis ); // Überschrift
$Ergebnis = str_replace( 'ccccff','F7F7F7', $Ergebnis ); // linke Seite
$Ergebnis = str_replace( 'cccccc','ECFFE6', $Ergebnis ); // rechte Seite
$Ergebnis = str_replace( 'PHP 4 Credits','<h5>PHP 4 Credits - Developer Team</h5>', $Ergebnis );
?>
<html>
<head>
<title>Michael Berndt</title>
<meta name="author" content="Michael Berndt">
<style type="text/css"><!--
a { text-decoration: none; }
a:hover { color:red; font-family: Helvetica, Arial; font-size: 12px;text-decoration: underline; }
h5 {color:blue; font-family: Helvetica, Arial; font-size: 12px;}
h1,h2 {font-family: "Verdana,Arial,Helvetica"; color: #404040;font-size:21pt;font-weight: 100;}
body, td {font-family: "Verdana, Arial, Geneva, Helvetica";
color: #000000;font-size:10pt;font-weight:100;}
th {font-family: tahoma, verdana, arial, times new roman;font-size: 12px;
font-weight: bold;color: #C00000;margin-left: 12px;}
//--></style>
</head>
<body bgcolor="#FFFAF0">
<link rel=stylesheet type="text/css" href="beispiele/listversion.css">
<div align="right">
<a href="">Source Code</a> - <a href="">plain File</a>
<font class=blau><HR align="right" NOSHADE COLOR=SILVER WIDTH=207 SIZE=1>
<a href="http://www.kassakurs.de">© Michael Berndt - Berlin</a> </font></div>
<p> </p>
<? echo "$Ergebnis"; ?>
</body>
</html>
?>
Ist aber auch nicht auf meinem Mist gewachsen, sondern auf http://www.michael-berndt.de/ie/phpinfo/phpinfo.php
Hier gibts alle Umgebungsvariablen.
Gruss
Alois