All pastes #970338 Raw Edit

Something

public text v1 · immutable
·published 2008-04-03 23:52 UTC
rendered paste body
<?php
$time = time();
$time = $time-7200;
$message = $_SERVER['REMOTE_ADDR']. "   " .gethostbyaddr($_SERVER['REMOTE_ADDR'])."   " . date("F j, Y, g:i:s a", $time) . "   " .$_SERVER['HTTP_USER_AGENT']. "   " . $_SERVER['HTTP_REFERER'];
$message = $message."\n";
$filename = 'out.txt';
$handle = fopen($filename, 'a');
fwrite($handle, $message);
fclose($handle);
header("Content-type: image/png");
$string = 'hi';
$im    = imagecreatefrompng("image.png");
$orange = imagecolorallocate($im, 220, 210, 60);
$px    = (imagesx($im) - 7.5 * strlen($string)) / 2;
imagestring($im, 3, $px, 9, $string, $orange);
imagepng($im);
imagedestroy($im);
?>