EmailAddress生成图片程序
发布:smiling 来源: PHP粉丝网 添加日期:2014-01-20 11:59:29 浏览: 评论:0
把下面的文件保存为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
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" />
- <head>
- <title>Welcome to domain.com</title>
- <meta content="all" name="robots" />
- <meta content="webmaster@domain.com,US" name="author" />
- <meta content="www.domain.com,Reprint from then webseits" name=Copyright />
- <meta content="Welcome to domain.com!" name=description />
- <meta content="About For China News Sports Entertainment Shop Business Travel" name=keywords />
- <meta http-equiv=Content-Language content="iso-8859-1" />
- <link rev=stylesheet media=all href="css/style01.css" type=text/css rel=stylesheet />
- <style type=text/css media=all>@import url("css/style01.css");</style>
- <meta http-equiv="Content-Language" content="en" />
- <meta http-equiv="pics-label" content='(pics-1.1 "http://www.icra.org/ratingsv02.html" l gen true for "http://www.domain.com" r (nz 1 vz 1 lz 1 oz 1 cz 1) gen true for "http://www.domain.com" r (nz 1 vz 1 lz 1 oz 1 cz 1))' />
- <meta http-equiv="reply-to" content="webmaster@domain.com" />
- <meta name="Author" content="domain.com employee" />
- <meta name="Copyright" content="Copyright (C) 2002-2005 domain.com All signature Rights Reserved." />
- <meta content="MSHTML 6.00.3790.0" name="generator" />
- </head>
- <body>
- <form action="index.php" mothod="post">
- You email:<input name="mailname" type="text" value="Webmaster@domain.com" /><br /><input type="submit" value="确定" />
- </form>
然后把两个文件放在同一个目录就可以了,这个程序主要是,通过get获取值后生成一个图片格式的email地址,主要是为了防止email搜索软件抓取email地址.
Tags: EmailAddress 生成 图片
- 上一篇:php生成静态页面程序
- 下一篇:php发送邮件代码-用mail
相关文章
- ·图片验证码生成应用实例(2014-01-15)
- ·php生成验证码与验证码验证完整实例(2014-01-16)
- ·php生成静态页面程序(2014-01-16)
- ·php标准生成验证码程序(2014-08-02)
- ·php实现的生成迷宫与迷宫寻址算法完整实例(2021-08-18)
- ·用PHP程序实现随机广告图片显示(2014-01-12)
- ·php图片统计器(2014-08-18)
推荐文章
热门文章
最新评论文章
- 写给考虑创业的年轻程序员(10)
- PHP新手上路(一)(7)
- 惹恼程序员的十件事(5)
- PHP邮件发送例子,已测试成功(5)
- 致初学者:PHP比ASP优秀的七个理由(4)
- PHP会被淘汰吗?(4)
- PHP新手上路(四)(4)
- 如何去学习PHP?(2)
- 简单入门级php分页代码(2)
- php中邮箱email 电话等格式的验证(2)