All pastes #425907 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-04-05 19:56 UTC
rendered paste body
<html>
<head>
<title>PHP</title>
</head>

<body>

<?php

    $agent = $_SERVER['HTTP_USER_AGENT'];
    $uri = $_SERVER['REQUEST_URI'];
    $ip = $_SERVER['REMOTE_ADDR'];
    $ref = $_SERVER['HTTP_REFERER'];
    $dtime = date('r');

PRINT "Your IP is $ip<br />Your Agent is $agent<br />The URL that referred you here is $ref<br />The date and time is $dtime";

?>


</body>
</html>