Nova

Nova
My only request is that you use this to learn not just to leech source code off me and not obtain any knowledge.

Example:

[PHP] Basic IP Image Generation LOLExample

Requirements:

• A host with an image library such as GD or ImageMick (110mb.com is a site that has GD already configured.)

Code:

<?php
Header("Content-Type: image/png");

// Get the IP Address
$IP = $_SERVER['REMOTE_ADDR'];

// Set image width and height
$Width = 250;
$Height = 20;

// Create the image resource
$Image = ImageCreate($Width, $Height);

// Color Variables
$Black = ImageColorAllocate($Image, 0, 0, 0);
$Red = ImageColorAllocate($Image, 255, 0, 0);

// Make the image background black
ImageFill($Image, 0, 0, $Black);

// Add the IP string to the image
ImageString($Image, 3, 43, 3, "Your IP is: $IP", $Red);

// Output the created image in png format
ImagePng($Image);

// Free up resources
ImageDestroy($Image);

?>

Sponsored content