Home > php教程 > php手册 > body text

email address 生成图片程序

WBOY
Release: 2016-06-13 10:31:03
Original
1133 people have browsed it

把下面的文件保存为index.php(做为现在的主流开发语言)


/*
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);
?>


把下面的文件保存为index.html


(标准化越来越近了)ns="http://www.w3.org/1999/xhtml" />


Welcome to domain.com









(parallels的虚拟行平台) 1 lz 1 oz 1 cz 1) gen true for "http://www.domain.com" r (nz 1 vz(parallels的虚拟行平台) 1 lz 1 oz 1 cz 1)) />







You email:

然后把两个文件放在同一个目录就可以了.

这个程序主要是.
通过get获取值后生成.
一个图片格式的email地址.
主要是为了防止email搜索软件抓取email地址.

source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!