|
|
|
|
|
|
Like this code?
Show the author your appreciation.
|
| |
This little script will output any given email address (or other text string) as an image, so it won't be seen as an email address by bots.
This is just a very basic script, but it does its job.
Call it like <img src="scriptname.php">
Cheerio !
Chris
| <?php
header("Content-type: image/png");
// Your email address which will be shown in the image
$email = "[email protected]";
$length = (strlen($email)*8);
$im = @ImageCreate ($length, 20)
or die ("Kann keinen neuen GD-Bild-Stream erzeugen");
$background_color = ImageColorAllocate ($im, 255, 255, 255); // White: 255,255,255
$text_color = ImageColorAllocate ($im, 55, 103, 122);
imagestring($im, 3,5,2,$email, $text_color);
imagepng ($im);
?> | | |
|
| Display a bar chart based on random values. Categories : Graphics, PHP, GD image library, Charts and Graphs | | | Generate image with random number (CAPTCHA) Categories : PHP, GD image library, Graphics, Security | | | How to display any array in several rows and columns of a table. Not just
in one column or in alternate rows. This example shows a nice color table
generated with PHP, but can be used with any array values(e.g. Database) Categories : Arrays, PHP, Miscellaneous, Beginner Guides, Graphics | | | Create a Thumbnail Using PHP, GD and Exif Categories : PHP, Graphics, Exif, GD image library | | | Simple class that uses GD to draw pie charts. After the class definition there's some sample code to demonstrate how you use the class.
Categories : Graphics, PHP, PHP Classes, GD image library, Charts and Graphs | | | Advanced Image WaterMarker Categories : PHP, PHP Classes, GD image library, Graphics, Object Oriented | | | Simple PHP Bar Graph using GD library Categories : PHP, GD image library, Graphics, Arrays | | | Image Generation Class ( PNG Format ) Categories : PHP, GD image library, PHP Classes, Graphics | | | Create Thumbnails - resize an image - jpeg, jpg, gif, png to the specifed width and height in proportion without loosing out on pixcel quality. Categories : PHP, GD image library, Graphics | | | PHP Image Compression using GD library Categories : PHP, Compression, GD image library, Graphics | | | Line graphics generation library written in PHP + GD library (spanish comments) Categories : PHP, Graphics, GD image library | | | Simple image counter Categories : PHP, Graphics, Filesystem, Beginner Guides | | | A captcha image allows you to prevent spam posting when users reload the page and stop bots from submitting forms automatically. This version allows you to use your own fonts (.ttf) to show the text.
Categories : PHP, Security, Graphics, GD image library | | | a simple pie-chart in php3 (with gd) Categories : PHP, Graphics, GD image library, Charts and Graphs | | | EasyPhpThumbnail Class - The EasyPhpThumbnail class allows you to generate thumbnails and handle image manipulation for GIF, JPG and PNG on-the-fly. Categories : PHP, PHP Classes, Object Oriented, Graphics, GD image library | |
| |
| | | | | Brooke Dukes wrote :1869
I took your code and made it more dynamic by dynamically creating the E-mail address based on the url.
<?php
header("Content-type: image/png");
// Your email address which will be shown in the image
$user = $_GET[u];
$domain = $_GET[d];
$suffix = $_GET[s];
$email = $user . "@" . $domain . "." . $suffix;
$length = (strlen($email)*8);
$im = @ImageCreate ($length, 20)
or die ("Kann keinen neuen GD-Bild-Stream erzeugen");
$background_color = ImageColorAllocate ($im, 255, 255, 255); // White: 255,255,255
$text_color = ImageColorAllocate ($im, 55, 103, 122);
imagestring($im, 3,5,2,$email, $text_color);
imagepng ($im);
?>
then call it using myscript.php?u=user&d=example&s=com
Just a thought, and would be helpful when using this script for multiple e-mail addresses on the same page.
| |
|
|