Requirements:
Instructions:
- 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
0 blogger-facebook:
Post a Comment