Home  >  Article  >  Backend Development  >  Email address generation image program_PHP tutorial

Email address generation image program_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:31:47859browse

Save the following file as index.php(as the current mainstream development language)

/*
MailX Managment System 0.8 Beta
*/
header("Content-type:image/png");
$mailaddress=$_GET[mailname];
$mailaddresslen=strlen($mailaddress);
$mailaddressimages= imagecreate($mailaddresslen*10,25);
$lenadd=$mailaddresslen;
$fontsize="4";
$center=(imagesx($mailaddressimages)-8.3*strlen($mailaddress)) /2;
$mailimagesbackground=ImageColorAllocate($mailaddressimages,231,196,43);
$mailimagesfacecolor=ImageColorAllocate($mailaddressimages,0,0,0);
ImageString($mailaddressimages,$fontsize,$center ,5,$mailaddress,$mailimagesfacecolor);
Imagepng($mailaddressimages);
ImageDestroy($mailaddressimages);
?>


Save the following file as index .html


(Standardization is getting closer)ns="http://www.w3.org/1999/xhtml" />

Welcome to domain.com









(parallels virtual row platform) 1 lz 1 oz 1 cz 1) gen true for "http://www.domain.com" r (nz 1 vz( virtual row platform for parallels) 1 lz 1 oz 1 cz 1)) />







You email:

Then put the two files in the same A directory is enough.

This program is mainly.
Get the value through get and generate it.
An email address in image format.
It is mainly to prevent email search software from grabbing emails. Address.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/508914.htmlTechArticleSave the following file as index.php (as the current mainstream development language) ? /* MailX Managment System 0.8 Beta */ header("Content-type:image/png"); mailaddress=_GET[mailname]; maila...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn