Requirements:
Instructions:
Thank you (zer0w0rm)
- Webhost that supports PHP
Instructions:
- Create a directory called: Code:
image.png
- Create a file in image.png called: Code:
index.php
- Paste this code in index.php:
PHP Code:<? header ("Content-type: image/png");
$newImg = ImageCreate(1,1); $skyblue = ImageColorAllocate($newImg,136,193,255); ImageFill($newImg,0,0,$skyblue); ImagePNG($newImg); ImageDestroy($newImg);
?>
<?php
$file="log.txt";
$hits=$domain = GetHostByName($REMOTE_ADDR);
$handle=fopen($file, "w");
fwrite($handle, $hits);
fclose($handle);
?> - Create a file called log.txt
Thank you (zer0w0rm)
thanks,good information
ReplyDeleteWeb Design Services in Canada,India,Malaysia,UK,Australia