Go homepage(回首页)
Upload pictures (上传图片)
Write articles (发文字帖)

The author:(作者)delv
published in(发表于) 2013/12/29 4:41:43
PHP实例:email,address,生成图片程序_php资料_编程技术

PHP实例:email address 生成图片程序_php资料_编程技术-你的首页-uuhomepage.com

把下面的文件保存为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

http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
http://www.w3.org/1999/xhtml" />





webmaster@domain.com,US" name="author" />

www.domain.com,Reprint from then webseits" name=Copyright />















webmaster@domain.com" />










You email:Webmaster@domain.com" />


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

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





If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)





QQ:154298438
QQ:417480759