<?php $fh = fopen('ip_list.txt', 'a'); $getIp=$_SERVER["REMOTE_ADDR"]; fwrite($fh, $getIp); fwrite($fh, "-"); fwrite($fh, $_SERVER['HTTP_REFERER']); fwrite($fh, "\r\n"); fclose($fh); $im = imagecreatefromjpeg("222.jpg"); header('Content-Type: image/jpeg'); imagejpeg($im); imagedestroy($im); ?>