Skip to content

Instantly share code, notes, and snippets.

@fushihara
Last active August 29, 2015 14:05
Show Gist options
  • Select an option

  • Save fushihara/43ce07e9634399259fe6 to your computer and use it in GitHub Desktop.

Select an option

Save fushihara/43ce07e9634399259fe6 to your computer and use it in GitHub Desktop.
確認くんスーパーライト
<?php
$time=time();
$ipAddress = $_SERVER["REMOTE_ADDR"];
$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
header("Content-Disposition: inline");
header("content-type: text/plain; charset=utf8");
print("time:".date("Y/m/d H:i:s T",$time)."\n");
print("ip:{$ipAddress}\n");
print("host:{$hostname}\n");
print("time_unix:{$time}\n");
print("\n");
foreach (getallheaders() as $name => $value) {
print("{$name}:{$value}\n");
}
print("end");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment