The signature or avatars on pkhp
The introduction
**********
So, you, probably, want to make the signature, in which except for your image and the data
Will be also the data from heading HTTP of search, for example ip, a browser, the provider or an axis
Looking this banner.
To make it it is simple enough. For this purpose it is necessary:
Hosting with support PHP and .htaccess;
The picture;
Direct hands.
For this purpose are not required (though are welcomed) zanie PHP and presence of a brain in cranial
To box.
The picture
*************
We draw a picture / ½«``«/bubF«U. Only is accurater, and we leave an empty seat for the text,
Which will deduce{remove} a script. We save in a format png under a name "img.png".
Script
******
In a file with a name "logo.png" it is saved below-mentioned:
<? php
Header (" Content-type: image/png ");
$string = " Your IP is $REMOTE_ADDR ";
$im = ImageCreateFromPng ("img.png");
$c = ImageColorAllocate ($im, 225, 225, 225);
ImageString ($im, 3,75,43, $string, $c);
ImagePng ($im);
ImageDestroy ($im);
?>
Now I explain:
<? php
The beginning of a script;
Header (" Content-type: image/png ");
And it is the text which will be deduced{removed}.
Here it is possible zapisal` any variable from khehderov. In my case it $REMOTE_ADDR.
$im = ImageCreateFromPng ("img.png");
We create a picture means PHP: img.png - your drawn picture, have learned{have found out}?
$c = ImageColorAllocate ($im, 225, 225, 225);
Actually, color. Three figures - RGB. Red, green and dark blue sostavljajuhhii.
ImageString ($im, 3,75, 43, $string, $c);
obstvenno, we write on a picture. The second variable (3) - the size; the third (75) and
The fourth (43) - distance from the left top corner across and verticals,
The fifth ($string) - the text, the sixth ($c) - color.
ImagePng ($im);
We display her .
ImageDestroy ($im);
Well now everything, we destroy, syntax demands =).
?>
The end of a script.
Hosting
*******
The best result price / quality from me of known hostings differs
Fatal.ru [http://www.fatal.ru] (the truth with registration there now like as - in general in any way, therefore juzaem similar hosts).
Zaregistriujtes`, enter on FTP, create a folder (for example logo) and zalejte there
Two files. A picture and a script.
Now that files with expansion png were processed not as picture and as scripts php, we should adjust it . We create a file blabla.txt and enter in him a line:
AddType application/x-httpd-php .png
Too we fill in it on the server. Now we rename it in ".htaccess".
He becomes latent and any more does not prevent.
The conclusion
**********
Everything, the script is ready. It is possible to place as avatorov/signatures at forums or
To do{make} with it for what you did{made} it .
But here at you open space for creativity: skriptik this can process c ***** s,
That will help you to make something of type avatorki with a bomb which cord will decrease or show current time. Think more shortly and create!

|